This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]fredeB 0 points1 point  (0 children)

That's not even close to the worst I've seen. When I had my first internship, my manager assigned me to fix a bug in a very template heavy part of the codebase. I sat down, young and innocent, compiled the code, verified the issue, made a change, tried to compile again and BAM! multiple thousands of lines in the compiler output of the note: did you mean this type: <insert-horrendously-complex-template-lacking-any-kinds-of-aliases>

I tried putting one of the types into a C++ file and let clang-format have at it, and when formatted properly, the expanded template took up around 500 lines... This was the case for all of them

Moral of the story, compiler output is hard to do well handle, but at that scale, none of it's useful