Skip to content
  1. Feb 05, 2013
  2. Feb 04, 2013
    • Manuel Klimek's avatar
      Implements the convenience matcher findAll. · abf43713
      Manuel Klimek authored
      We found that findAll has been implemented incorrectly multiple times
      by various people using the matchers. To prevent further wasted
      development effort, it makes sense to add it as convenience matcher
      implemented as eachOf(m, forEachDescendant(m)).
      
      This patch also updates the docs with the new matchers.
      
      llvm-svn: 174320
      abf43713
    • Manuel Klimek's avatar
      Add an eachOf matcher. · 88b95872
      Manuel Klimek authored
      eachOf gives closure on the forEach and forEachDescendant matchers.
      Before, it was impossible to implement a findAll matcher, as matching
      the node or any of its descendants was not expressible (since anyOf
      only triggers the first match).
      
      llvm-svn: 174315
      88b95872
    • Daniel Jasper's avatar
      Improve handling of trailing block comments · 14e40ec8
      Daniel Jasper authored
      This is a follow up to r174309 to actually make it work.
      
      llvm-svn: 174314
      14e40ec8
    • Daniel Jasper's avatar
      Improve formatting of stream operators. · 2603ee0d
      Daniel Jasper authored
      If there are string literals on either side of a '<<', chances are
      high that they represent logically separate concepts. Otherwise,
      the author could just have just a single literal (possible split
      over multiple lines).
      
      So, we can now nicely format things like:
      cout << "somepacket = {\n"
           << "  val a = " << ValueA << "\n"
           << "  val b = " << ValueB << "\n"
           << "}";
      
      llvm-svn: 174310
      2603ee0d
    • Daniel Jasper's avatar
      Improve handling of trailing block comments. · 1f140981
      Daniel Jasper authored
      We can now (even in non-bin-packing modes) format:
      someFunction(1, /* comment 1 */
                   2, /* comment 2 */
                   3, /* comment 3 */
                   aaa);
      
      llvm-svn: 174309
      1f140981
    • Daniel Jasper's avatar
      Fix an error in formatting of for-loops. · f7f13c0e
      Daniel Jasper authored
      Two minor changes:
      * Slight penalty for breaking at "," as opposed to ";".
      * Don't apply bin-packing rules to for-loops.
      
      Before:
      for (int aaaaaa = aaaaaaaaaa; aaaaaa < bbbbbbbb; ++aaaaaa,
               ++ccccccccccccccc) {}
      
      After:
      for (int aaaaaa = aaaaaaaaaa; aaaaaa < bbbbbbbb;
           ++aaaaaa, ++ccccccccccccccc) {}
      
      llvm-svn: 174308
      f7f13c0e
    • Daniel Jasper's avatar
      Restructuring of token annotation for formatting. · 3a9370cb
      Daniel Jasper authored
      This combines several changes:
      * Calculation token type (e.g. for * and &) in the AnnotatingParser.
      * Calculate the scope binding strength in the AnnotatingParser.
      * Let <> and [] scopes bind stronger than () and {} scopes.
      * Add minimal debugging output.
      
      llvm-svn: 174307
      3a9370cb
    • NAKAMURA Takumi's avatar
      clang/Analysis: Fix r174245, a valgrind error in... · cc4aaef0
      NAKAMURA Takumi authored
      clang/Analysis: Fix r174245, a valgrind error in AnalysisDeclContext::getBody(bool &IsAutosynthesized), to initialize IsAutosynthesized explicitly.
      
      llvm-svn: 174303
      cc4aaef0
    • Dmitri Gribenko's avatar
      DeclPrinter: fix CXXConstructExpr printing with implicit default argument · b614fab3
      Dmitri Gribenko authored
      This is an improvement of r173630, that handles the following case:
      
        struct VirualDestrClass
        {
          VirualDestrClass(int arg);
          virtual ~VirualDestrClass();
        };
      
        struct ConstrWithCleanupsClass
        {
          ConstrWithCleanupsClass(const VirualDestrClass& cplx = VirualDestrClass(42));
        };
      
        ConstrWithCleanupsClass cwcNoArg;
      
      That was printed as:
      
        ConstrWithCleanupsClass cwcNoArg();
      
      llvm-svn: 174296
      b614fab3
  3. Feb 03, 2013
Loading