CodeTracking.jl icon indicating copy to clipboard operation
CodeTracking.jl copied to clipboard

@code_string output includes comment after function

Open ajinkya-k opened this issue 7 months ago • 1 comments

I noticed that the @code_string macro includes comment AFTER the function source in the output. Is this expected behavior?

Here is an example:

julia> using LinearAlgebra
julia> using CodeTracking

julia> @code_string qr(X)
"function qr(A::AbstractMatrix{T}, arg...; kwargs...) where T\n    require_one_based_indexing(A)\n    AA = copy_similar(A, _qreltype(T))\n    return _qr(AA, arg...; kwargs...)\nend\n# TODO: remove in Julia v2.0"

ajinkya-k avatar Jun 16 '25 15:06 ajinkya-k

See https://github.com/JuliaLang/JuliaSyntax.jl/issues/316#issuecomment-1870294857 and https://github.com/JuliaLang/JuliaSyntax.jl/pull/493

timholy avatar Aug 15 '25 07:08 timholy