[PATCH] D156360: [clang-format] Support function and overloaded operator SpacesInParensOption
Björn Schäpers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 27 13:22:48 PDT 2023
HazardyKnusperkeks added inline comments.
================
Comment at: clang/unittests/Format/FormatTest.cpp:16786
verifyFormat("SomeType *__attribute__( ( attr ) ) *a = NULL;", Spaces);
- verifyFormat("void __attribute__( ( naked ) ) foo( int bar )", Spaces);
+ verifyFormat("void __attribute__( ( x ) ) foo(int y) { return; }", Spaces);
verifyFormat("void f() __attribute__( ( asdf ) );", Spaces);
----------------
Why change this?
================
Comment at: clang/unittests/Format/FormatTest.cpp:16904
+ verifyFormat("call( x, y, z );", Spaces);
+ verifyFormat("call();", Spaces);
+ verifyFormat("std::function<void(int, int)> callback;", Spaces);
----------------
Should here be a space?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156360/new/
https://reviews.llvm.org/D156360
More information about the cfe-commits
mailing list