[clang] [clang] Implement function pointer type discrimination (PR #96992)

Akira Hatanaka via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 28 11:26:30 PDT 2024


================
@@ -470,6 +470,9 @@ ENUM_LANGOPT(StrictFlexArraysLevel, StrictFlexArraysLevelKind, 2,
 
 COMPATIBLE_VALUE_LANGOPT(MaxTokens, 32, 0, "Max number of tokens per TU or 0")
 
+BENIGN_LANGOPT(FunctionPointerTypeDiscrimination, 1, 0,
----------------
ahatanak wrote:

I moved the langopt closer to other pointer auth langopts. I think we can convert other pointer auth langopts to `BENIGN_LANGOPT` or `BENIGN_ENUM_LANGOPT` as they probably don't affect the construction of the AST.

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


More information about the cfe-commits mailing list