aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGen.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2015-05-05 08:40:32 +0000
committerDaniel Jasper <djasper@google.com>2015-05-05 08:40:32 +0000
commit9326f919225688c87e75fca90f496d7f326e942d (patch)
tree1403f4f5d7a7a926f56256bccf1da9f168f74503 /llvm/lib/CodeGen/CodeGen.cpp
parentfc80e26fe6e24ae4e21ccf55f8172106f2233a64 (diff)
downloadllvm-9326f919225688c87e75fca90f496d7f326e942d.zip
llvm-9326f919225688c87e75fca90f496d7f326e942d.tar.gz
llvm-9326f919225688c87e75fca90f496d7f326e942d.tar.bz2
clang-format: [JS] support optional methods.
Optional methods use ? tokens like this: interface X { y?(): z; } It seems easiest to detect and disambiguate these from ternary expressions by checking if the code is in a declaration context. Turns out that that didn't quite work properly for interfaces in Java and JS, and for JS file root contexts. Patch by Martin Probst, thank you. llvm-svn: 236488
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
0 files changed, 0 insertions, 0 deletions