summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2018-03-22 14:30:28 +0000
committerDaniel Jasper <djasper@google.com>2018-03-22 14:30:28 +0000
commitd5e9ff4fe20e66d53a245645c95f0bb816b747cb (patch)
tree22da1c578c51db62739f670edec6e76082487f17 /clang/unittests/Format
parent301faac18be3855f2b742accc5e1b0f71ea8e3c7 (diff)
downloadbcm5719-llvm-d5e9ff4fe20e66d53a245645c95f0bb816b747cb.tar.gz
bcm5719-llvm-d5e9ff4fe20e66d53a245645c95f0bb816b747cb.zip
clang-format: Fix SpacesInParentheses with fully qualified names.
When SpacesInParentheses is set to true clang-format does not add a space before fully qualified names. For example: do_something(::globalVar ); Fix by Darby Payne. Thank you! llvm-svn: 328200
Diffstat (limited to 'clang/unittests/Format')
-rw-r--r--clang/unittests/Format/FormatTest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index 400a55827a0..fa5506fbfb5 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -8827,6 +8827,7 @@ TEST_F(FormatTest, ConfigurableSpacesInParentheses) {
FormatStyle Spaces = getLLVMStyle();
Spaces.SpacesInParentheses = true;
+ verifyFormat("do_something( ::globalVar );", Spaces);
verifyFormat("call( x, y, z );", Spaces);
verifyFormat("call();", Spaces);
verifyFormat("std::function<void( int, int )> callback;", Spaces);
OpenPOWER on IntegriCloud