[clang] [clang-transformer] Allow stencils to read from system headers. (PR #66480)

Yitzhak Mandelbaum via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 15 05:15:19 PDT 2023


================
@@ -230,7 +230,7 @@ class SelectorStencil : public StencilInterface {
       // message. If it's valid, then something else is the cause and we just
       // return the generic failure message.
       if (auto Err =
-              tooling::validateEditRange(*RawRange, *Match.SourceManager))
+              tooling::validateRange(*RawRange, *Match.SourceManager, true))
----------------
ymand wrote:

Please use `/*AllowSystemHeaders=*/` before `true`, here and below.

https://github.com/llvm/llvm-project/pull/66480


More information about the cfe-commits mailing list