[clang] [NFC] Rename hlsl semantics to hlsl annotations (PR #89309)

Cooper Partin via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 18 14:06:37 PDT 2024


================
@@ -4890,15 +4890,16 @@ class SpellingList {
   }
 
   void add(const Record &Attr, FlattenedSpelling Spelling) {
-    SpellingKind Kind = StringSwitch<SpellingKind>(Spelling.variety())
-                            .Case("GNU", SpellingKind::GNU)
-                            .Case("CXX11", SpellingKind::CXX11)
-                            .Case("C23", SpellingKind::C23)
-                            .Case("Declspec", SpellingKind::Declspec)
-                            .Case("Microsoft", SpellingKind::Microsoft)
-                            .Case("Keyword", SpellingKind::Keyword)
-                            .Case("Pragma", SpellingKind::Pragma)
-                            .Case("HLSLSemantic", SpellingKind::HLSLSemantic);
+    SpellingKind Kind =
----------------
coopp wrote:

Did clang-format shift all of this code over?

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


More information about the cfe-commits mailing list