News for hackers. Stuff that matters.
Re:Clang-format configurator by Cyphus on Friday October 30, 2015 @03:03PM (#10479824)
clang-format uses clang's C++ parser to get a real understanding of the code, even in syntactical edge cases. Because of this, clang-format can provide more specific and contextual style rules that go beyond what astyle can do.
Re:Clang-format configurator by bigcheesegs on Saturday October 31, 2015 @03:22AM (#10482086)
clang-format actually only uses clang's lexer, it does its own parsing. It does this so that it can be applied to code snipits and so that you don't have to provide the full include paths and command line options required to correctly parse the file.