[PATCH] D76289: [NFC][Attr TableGen] Emit Spelling Enum for Attr types if there >1

Erich Keane via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 17 12:24:21 PDT 2020


This revision was automatically updated to reflect the committed changes.
erichkeane marked 2 inline comments as done.
Closed by commit rG661c950630fb: [NFC][Attr TableGen] Emit Spelling Enum for Attr types if there >1 (authored by erichkeane).
Herald added a project: clang.

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D76289/new/

https://reviews.llvm.org/D76289

Files:
  clang/utils/TableGen/ClangAttrEmitter.cpp


Index: clang/utils/TableGen/ClangAttrEmitter.cpp
===================================================================
--- clang/utils/TableGen/ClangAttrEmitter.cpp
+++ clang/utils/TableGen/ClangAttrEmitter.cpp
@@ -2329,7 +2329,7 @@
     SemanticSpellingMap SemanticToSyntacticMap;
 
     std::string SpellingEnum;
-    if (!ElideSpelling)
+    if (Spellings.size() > 1)
       SpellingEnum = CreateSemanticSpellings(Spellings, SemanticToSyntacticMap);
     if (Header)
       OS << SpellingEnum;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76289.250858.patch
Type: text/x-patch
Size: 495 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200317/7e344f81/attachment.bin>


More information about the cfe-commits mailing list