Skip to content
Snippets Groups Projects
  • Nico Weber's avatar
    3afc8313
    clang-format: Fix many Objective-C formatting regressions from r289428 · 3afc8313
    Nico Weber authored
    r289428 added a separate language kind for Objective-C, but kept many
    "Language == LK_Cpp" checks untouched.  This introduced a "IsCpp()"
    method that returns true for both C++ and Objective-C++, and replaces
    all comparisons of Language with LK_Cpp with calls to this new method.
    
    Also add a lot more test coverge for formatting things in LK_ObjC mode,
    by having FormatTest's verifyFormat() test for LK_ObjC everything that's
    being tested for LK_Cpp at the moment.
    
    Fixes PR32060 and many other things.
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@296160 91177308-0d34-0410-b5e6-96231b3b80d8
    3afc8313
    History
    clang-format: Fix many Objective-C formatting regressions from r289428
    Nico Weber authored
    r289428 added a separate language kind for Objective-C, but kept many
    "Language == LK_Cpp" checks untouched.  This introduced a "IsCpp()"
    method that returns true for both C++ and Objective-C++, and replaces
    all comparisons of Language with LK_Cpp with calls to this new method.
    
    Also add a lot more test coverge for formatting things in LK_ObjC mode,
    by having FormatTest's verifyFormat() test for LK_ObjC everything that's
    being tested for LK_Cpp at the moment.
    
    Fixes PR32060 and many other things.
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@296160 91177308-0d34-0410-b5e6-96231b3b80d8
Code owners
Assign users and groups as approvers for specific file changes. Learn more.