]> granicus.if.org Git - clang/commit
[Parser] Use special definition for pragma annotations
authorSerge Pavlov <sepavloff@gmail.com>
Thu, 1 Aug 2019 15:15:10 +0000 (15:15 +0000)
committerSerge Pavlov <sepavloff@gmail.com>
Thu, 1 Aug 2019 15:15:10 +0000 (15:15 +0000)
commit95ce87230612268972a399adfb4c937e2052bc8c
tree0e641cb8441c23ba15cc963095cd14bd520eb289
parent263dbee25a234d77c02ba7bca897dfe653f292e0
[Parser] Use special definition for pragma annotations

Previously pragma annotation tokens were described as any other
annotations in TokenKinds.def. This change introduces special macro
PRAGMA_ANNOTATION for the pragma descriptions. It allows implementing
checks that deal with pragma annotations only.

Differential Revision: https://reviews.llvm.org/D65405

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@367575 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/TokenKinds.def
include/clang/Basic/TokenKinds.h
lib/Basic/TokenKinds.cpp