Comments (9)
I'd love to be wrong, but I don't think clang-format
supports this at present: http://llvm.org/bugs/show_bug.cgi?id=18543
from clangformat-xcode.
I've submitted a patch to clang that should (hopefully) fix this: http://llvm.org/bugs/show_bug.cgi?id=18543#c3
from clangformat-xcode.
I see you then added a comment after your patch saying you "jumped the gun", so does that mean your patch doesn't fix it?
from clangformat-xcode.
It fixes plain old Objective-C method calls, but falls apart when it encounters blocks as method parameters. It's no worse than before (better, actually), but it's not "fixed". I've never written any C++ before last night, so I'm still wading through how this all works.
clang-format
looks to have some pretty rigid edges at the moment, but I assume that's how all formatters work.
from clangformat-xcode.
I've submitted a patch to clang that should (hopefully) fix this: http://llvm.org/bugs/show_bug.cgi?id=18543#c3
@tonyarnold ๐ค
from clangformat-xcode.
Don't get too excited โ if you read the thread, you'll see I've still got convincing to do. And I do so ever hate writing tests!
from clangformat-xcode.
OK, as of #35, setting ColumnLimit: 0
in your .clang-format
will keep methods from spanning multiple lines.
from clangformat-xcode.
๐
from clangformat-xcode.
๐ค
from clangformat-xcode.
Related Issues (20)
- Option -sort-includes HOT 5
- Just FYI โ I've created AnyFormat plugin based on your ClangFormat
- Problems with Xcode 7.3
- Disable plugin if selected format from missing File
- Update clang-format (wrong Linux configuration)
- ไธญๆๅญ็ฌฆไธฒๆพ็คบไธๆญฃ็กฎ HOT 4
- An error occurred when dealing with Chinese
- Cannot install on Xcode 8 HOT 4
- How to install? HOT 2
- Create home-brew cask for Xcode8 App HOT 1
- XCode 9 support HOT 17
- KeepEmptyLinesAtTheStartOfBlocks does not supported
- Which rule to use for C11 _Generic? HOT 2
- XCode 9 support HOT 1
- Is this still alive? HOT 2
- do you support xcode 11 HOT 2
- About #ifndef
- How to install ? http://alcatraz.io/ not available HOT 3
- integrate clang-tidy with this plugin.
- is this repo still in maintain stage?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clangformat-xcode.