https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100548
Bug ID: 100548 Summary: No GCC equivalent of built-in predefined macro __clang_analyzer__ Product: gcc Version: 11.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: andrew at ishiboo dot com Target Milestone: --- I scanned the `-fanalyzer -dM -E` output and there does not appear to be any built-in predefined macro to indicate that it is being evaluated by the analyzer. Clang defines the `__clang_analyzer__` built-in documented here: https://clang-analyzer.llvm.org/faq.html#exclude_code Can this be added?