[clang] [Clang] Implement P3034R1 Module Declarations Shouldn’t be Macros (PR #90574)

via cfe-commits cfe-commits at lists.llvm.org
Fri May 10 05:09:38 PDT 2024


================
@@ -520,6 +524,18 @@ class alignas(IdentifierInfoAlignment) IdentifierInfo {
       RecomputeNeedsHandleIdentifier();
   }
 
+  /// Determine whether this is the contextual keyword \c module.
+  bool isModulesDecl() const { return IsModulesDecl; }
+
+  /// Set whether this identifier is the contextual keyword \c module.
+  void setModulesDecl(bool I) {
----------------
yronglin wrote:

It seems that the setter methods of other flags in `IdentifierInfo` have a bool parameter, so I kept the same format.

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


More information about the cfe-commits mailing list