carlosgalvezp wrote: > what is the expected behavior for code expanded from macros defined in system > header?
As it is right now, we do not perform any expansion of the `SourceLocation` before checking if it is in a system header, so the behavior is that macros coming from system headers won't be analyzed. The rationale being that a user typically cannot change the contents of a system macro anyway. If this is deemed too aggressive I can change it to perform the check on the expanded location instead. This would be consistent with the reverted patch as well as some checks that already do `unless(isExpansionInSystemHeader)`. https://github.com/llvm/llvm-project/pull/151035 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits