llvm-project/clang/lib/Format
Daniel Jasper 516d7971b3 clang-format: Fix switch/case interaction with macros.
Before:
  #define OPERATION_CASE(name) \
    case OP_name:              \
    return operations::Operation##name

  switch (OpCode) {
      CASE(Add);
      CASE(Subtract);
    default:
      return operations::Unknown;
  }

After:
  #define OPERATION_CASE(name) \
    case OP_name:              \
      return operations::Operation##name;

  switch (OpCode) {
    CASE(Add);
    CASE(Subtract);
    default:
      return operations::Unknown;
  }

llvm-svn: 187118
2013-07-25 11:31:57 +00:00
..
BreakableToken.cpp Add 'static' and 'const' qualifiers to some arrays of strings. 2013-07-15 08:24:27 +00:00
BreakableToken.h Reformat clang-format's source files after r185822 and others. 2013-07-08 14:34:09 +00:00
CMakeLists.txt Unified token breaking logic for strings and block comments. 2013-04-15 14:28:00 +00:00
Encoding.h Reformat clang-format's source files after r185822 and others. 2013-07-08 14:34:09 +00:00
Format.cpp clang-format: Initial (incomplete) support for the WebKit coding style. 2013-07-24 13:10:59 +00:00
FormatToken.h clang-format: Improve handling of unterminated string literals. 2013-07-16 20:28:33 +00:00
Makefile
TokenAnnotator.cpp clang-format: Fix bad line break with pointers to members. 2013-07-18 14:46:07 +00:00
TokenAnnotator.h UTF-8 support for clang-format. 2013-06-05 14:09:10 +00:00
UnwrappedLineParser.cpp clang-format: Fix switch/case interaction with macros. 2013-07-25 11:31:57 +00:00
UnwrappedLineParser.h Fix alignment of closing brace in braced initializers. 2013-07-09 09:06:29 +00:00
WhitespaceManager.cpp Reformat clang-format's source files after r185822 and others. 2013-07-08 14:34:09 +00:00
WhitespaceManager.h Reformat clang-format's source files after r185822 and others. 2013-07-08 14:34:09 +00:00