summaryrefslogtreecommitdiff
path: root/utils/TableGen/TableGen.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-01-09 19:39:35 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-01-09 19:39:35 +0000
commit80c26c2da46b68b69e59a73b49df7fd9037490ba (patch)
tree27a5ca2a81f88e688c36999ed4ba3b44130653a4 /utils/TableGen/TableGen.cpp
parentaacbad2dc5c365946a89568f5afee7bfb79eeb6e (diff)
downloadclang-80c26c2da46b68b69e59a73b49df7fd9037490ba.tar.gz
clang-80c26c2da46b68b69e59a73b49df7fd9037490ba.tar.bz2
clang-80c26c2da46b68b69e59a73b49df7fd9037490ba.tar.xz
Removing a bit of custom parsing functionality used by the thread safety analysis APIs. Now using tablegen to determine whether an attribute's arguments should be parsed in an unevaluated context instead of relying on a separate, hard-coded list of attributes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198883 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/TableGen.cpp')
-rw-r--r--utils/TableGen/TableGen.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/utils/TableGen/TableGen.cpp b/utils/TableGen/TableGen.cpp
index 0b60897cd3..f217a6e172 100644
--- a/utils/TableGen/TableGen.cpp
+++ b/utils/TableGen/TableGen.cpp
@@ -25,6 +25,7 @@ using namespace clang;
enum ActionType {
GenClangAttrClasses,
GenClangAttrIdentifierArgList,
+ GenClangAttrArgContextList,
GenClangAttrTypeArgList,
GenClangAttrImpl,
GenClangAttrList,
@@ -66,6 +67,10 @@ cl::opt<ActionType> Action(
"gen-clang-attr-identifier-arg-list",
"Generate a list of attributes that take an "
"identifier as their first argument"),
+ clEnumValN(GenClangAttrArgContextList,
+ "gen-clang-attr-arg-context-list",
+ "Generate a list of attributes that parse their arguments "
+ "in an unevaluated context"),
clEnumValN(GenClangAttrTypeArgList,
"gen-clang-attr-type-arg-list",
"Generate a list of attributes that take a type as their "
@@ -154,6 +159,9 @@ bool ClangTableGenMain(raw_ostream &OS, RecordKeeper &Records) {
case GenClangAttrIdentifierArgList:
EmitClangAttrIdentifierArgList(Records, OS);
break;
+ case GenClangAttrArgContextList:
+ EmitClangAttrArgContextList(Records, OS);
+ break;
case GenClangAttrTypeArgList:
EmitClangAttrTypeArgList(Records, OS);
break;