[PATCH] D65405: [Parser] Use special definition for pragma annotations

Serge Pavlov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 29 10:01:42 PDT 2019


sepavloff created this revision.
sepavloff added reviewers: rsmith, rjmccall.
Herald added a reviewer: jdoerfert.
Herald added a project: clang.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D65405

Files:
  clang/include/clang/Basic/TokenKinds.def
  clang/include/clang/Basic/TokenKinds.h
  clang/lib/Basic/TokenKinds.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65405.212186.patch
Type: text/x-patch
Size: 5972 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190729/aec80732/attachment.bin>


More information about the cfe-commits mailing list