summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2016-06-29 21:17:59 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2016-06-29 21:17:59 +0000
commitc7a05a9f4d589f562c4fd043fb8e605e536b0dec (patch)
tree582b215d2a5518247b9a0fe1125579511d89f645 /llvm/lib/Support/CommandLine.cpp
parent03c38af1097a4da22f39cec4cb16d0fcbd935dd6 (diff)
downloadbcm5719-llvm-c7a05a9f4d589f562c4fd043fb8e605e536b0dec.tar.gz
bcm5719-llvm-c7a05a9f4d589f562c4fd043fb8e605e536b0dec.zip
P0305R1: Parsing support for init-statements in 'if' and 'switch' statements.
No semantic analysis yet. This is a pain to disambiguate correctly, because the parsing rules for the declaration form of a condition and of an init-statement are quite different -- for a token sequence that looks like a declaration, we frequently need to disambiguate all the way to the ')' or ';'. We could do better here in some cases by stopping disambiguation once we've decided whether we've got an expression or not (rather than keeping going until we know whether it's an init-statement declaration or a condition declaration), by unifying our parsing code for the two types of declaration and moving the syntactic checks into Sema; if this has a measurable impact on parsing performance, I'll look into that. llvm-svn: 274169
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud