diff options
author | mydeveloperday <mydeveloperday@gmail.com> | 2020-09-08 16:39:11 +0100 |
---|---|---|
committer | mydeveloperday <mydeveloperday@gmail.com> | 2020-09-08 16:40:04 +0100 |
commit | c81dd3d159ab03d46e4280c458d3c29e56648218 (patch) | |
tree | 5c86a242b0f15883e4fad7dccbf0accb570f3a75 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | c2f6a0012882ba9b39ccee53f3d7f4f1aedf2181 (diff) | |
download | llvm-c81dd3d159ab03d46e4280c458d3c29e56648218.zip llvm-c81dd3d159ab03d46e4280c458d3c29e56648218.tar.gz llvm-c81dd3d159ab03d46e4280c458d3c29e56648218.tar.bz2 |
[clang-format] Handle shifts within conditions
In some situation shifts can be treated as a template, and is thus formatted as one. So, by doing a couple extra checks to assure that the condition doesn't contain a template, and is in fact a bit shift should solve this problem.
This is a fix for [[ https://bugs.llvm.org/show_bug.cgi?id=46969 | bug 46969 ]]
Reviewed By: MyDeveloperDay
Patch By: Saldivarcher
Differential Revision: https://reviews.llvm.org/D86581
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions