[PATCH] D69088: [Lex] #pragma clang transform
Alexey Bataev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 19 09:11:18 PST 2019
ABataev added inline comments.
================
Comment at: clang/lib/Parse/ParsePragma.cpp:3062
+ // TODO: Handle nested pragmas as in r325369.
+ assert(!Tok.isAnnotation());
+ assert(Tok.isNot(tok::annot_pragma_transform));
----------------
Add a message in this assert.
================
Comment at: clang/lib/Parse/ParsePragma.cpp:3063-3067
+ assert(Tok.isNot(tok::annot_pragma_transform));
+ assert(Tok.isNot(tok::annot_pragma_transform_end));
+ assert(Tok.isNot(tok::annot_pragma_openmp));
+ assert(Tok.isNot(tok::annot_pragma_openmp_end));
+ assert(Tok.isNot(tok::annot_pragma_loop_hint));
----------------
These asserts are covered by the very first one `assert(!Tok.isAnnotation());`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D69088/new/
https://reviews.llvm.org/D69088
More information about the cfe-commits
mailing list