Daniel Dunbar | fcdd8fe | 2008-10-04 19:21:03 +0000 | [diff] [blame] | 1 | //===---- ParserPragmas.h - Language specific pragmas -----------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file defines #pragma handlers for language specific pragmas. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #ifndef LLVM_CLANG_PARSE_PARSEPRAGMA_H |
| 15 | #define LLVM_CLANG_PARSE_PARSEPRAGMA_H |
| 16 | |
| 17 | #include "clang/Lex/Pragma.h" |
| 18 | |
| 19 | namespace clang { |
| 20 | class Action; |
| 21 | |
| 22 | class PragmaPackHandler : public PragmaHandler { |
| 23 | Action &Actions; |
| 24 | public: |
| 25 | PragmaPackHandler(const IdentifierInfo *N, Action &A) : PragmaHandler(N), |
| 26 | Actions(A) {} |
| 27 | |
| 28 | virtual void HandlePragma(Preprocessor &PP, Token &FirstToken); |
| 29 | }; |
| 30 | |
| 31 | } // end namespace clang |
| 32 | |
| 33 | #endif |