Issue 165515
Summary [clang] Don't add comments to the AST if not requested via lang opts
Labels clang:frontend, performance
Assignees
Reporter tbaederr
    For some reason, we parse (and allocate, etc.) documentation comments by default: https://godbolt.org/z/j5dzWa3zY 

However, I don't think any of the options that would actually emit diagnostics for comments are enabled by default, so the comments are never used. Personally, I have never seen such diagnostics, at least not in a local build.

It would be beneficial to not parse the comments if none of the options to see such diagnostics are enabled:
https://llvm-compile-time-tracker.com/compare.php?from=9cb92371cb37599b1d7eca6369a7d1512030868a&to=b01b46a3240087db438036400d6bec047e72600c&stat=instructions:u
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to