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

Daniil Kovalev via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 28 08:14:25 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,
----------------
kovdan01 wrote:

Can we use `LANGOPT`, just as we use for other similar `PointerAuth*` options above? Also, moving this definition to similar ones would probably make sense.

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


More information about the cfe-commits mailing list