[clang] [Clang] Treat line directives as header names. (PR #211512)
Corentin Jabot via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 23 04:39:05 PDT 2026
================
@@ -1599,6 +1599,21 @@ static bool GetLineValue(Token &DigitTok, unsigned &Val,
return false;
}
+// Unlike header-names, line directive only support filenames in double quotes
+// but does support empty filenames.
+static void GetFilenameSpellingForLineDirective(const Preprocessor &PP,
----------------
cor3ntin wrote:
That was i did initially but it was strictly worse. Different diags, different constraints... I'm happy with a different name though, if you want
https://github.com/llvm/llvm-project/pull/211512
More information about the cfe-commits
mailing list