summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/lang/cpp/class-template-parameter-pack/TestClassTemplateParameterPack.py
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2019-02-15 23:07:43 +0000
committerAlexander Kornienko <alexfh@google.com>2019-02-15 23:07:43 +0000
commit027f5f56839f3ac9095edcb0d82267302786d8c8 (patch)
treeb943efad144fb4932bf5aeae70dc5067057a0364 /lldb/packages/Python/lldbsuite/test/lang/cpp/class-template-parameter-pack/TestClassTemplateParameterPack.py
parent383ccfb360fa1ee62061c1662c2d1c1747c80df5 (diff)
downloadbcm5719-llvm-027f5f56839f3ac9095edcb0d82267302786d8c8.tar.gz
bcm5719-llvm-027f5f56839f3ac9095edcb0d82267302786d8c8.zip
clang-format with UseTab: Always sometimes doesn't insert the right amount of tabs.
Trailing comments are not always aligned properly when UseTab is set to Always. Consider: int a; // x int bbbbbbbb; // x With .clang-format: --- Language: Cpp BasedOnStyle: LLVM UseTab: Always ... The trailing comments of this code block should be aligned, but aren't To align the first trailing comment it needs to insert 8 spaces. This should be one tab plus six spaces. It skips the logic of the first partial tab in FirstTabWidth (=2) + Style.TabWidth (=8) <= Spaces (=8) and only inserts one tab. Proposed fix and test is attached. Patch by Hylke Kleve. Differential revision: https://reviews.llvm.org/D57655 llvm-svn: 354183
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang/cpp/class-template-parameter-pack/TestClassTemplateParameterPack.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud