aboutsummaryrefslogtreecommitdiff
path: root/lib/Parse/ParsePragma.h
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2011-04-25 18:49:15 +0000
committerFariborz Jahanian <fjahanian@apple.com>2011-04-25 18:49:15 +0000
commit62c9258f4a71569a66d805fc7776526a2c76b34e (patch)
tree3f1b0b7019f50a950b76a8f208e918a8e6fd1955 /lib/Parse/ParsePragma.h
parent621c92a582546e2fa5ae28cf8b7e14d5a60fab11 (diff)
Recognize gcc's ms_struct pragma (and ignore for now).
This is wip. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130138 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParsePragma.h')
-rw-r--r--lib/Parse/ParsePragma.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Parse/ParsePragma.h b/lib/Parse/ParsePragma.h
index bee6af3f4c..1d3138fa70 100644
--- a/lib/Parse/ParsePragma.h
+++ b/lib/Parse/ParsePragma.h
@@ -58,6 +58,16 @@ public:
virtual void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
Token &FirstToken);
};
+
+class PragmaMSStructHandler : public PragmaHandler {
+ Sema &Actions;
+public:
+ explicit PragmaMSStructHandler(Sema &A) : PragmaHandler("ms_struct"),
+ Actions(A) {}
+
+ virtual void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
+ Token &FirstToken);
+};
class PragmaUnusedHandler : public PragmaHandler {
Sema &Actions;