[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


================
@@ -91,6 +91,10 @@ StringRef getExtendedText(const T &Node, tok::TokenKind Next,
 llvm::Error validateEditRange(const CharSourceRange &Range,
                               const SourceManager &SM);
 
+/// Determines whether \p Range is one that can be read from.
+llvm::Error validateRange(const CharSourceRange &Range, const SourceManager &SM,
+                          bool AllowSystemHeaders);
----------------
ymand wrote:

Please explain `AllowSystemHeaders` in the comments. May not be totally obvious.

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


More information about the cfe-commits mailing list