This is an archive of the discontinued LLVM Phabricator instance.

[clang] Add cleanup_function field to CleanupAttr json AST dump
ClosedPublic

Authored by serge-sans-paille on Aug 12 2023, 6:34 AM.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptAug 12 2023, 6:34 AM
serge-sans-paille requested review of this revision.Aug 12 2023, 6:34 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 12 2023, 6:34 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
This revision is now accepted and ready to land.Aug 14 2023, 6:37 AM
This revision was landed with ongoing or failed builds.Aug 14 2023, 2:00 PM
This revision was automatically updated to reflect the committed changes.

Hi, we're seeing a test failure in our CI after this stack. Not exactly sure which commit though.

You can find the failing bot here:
https://luci-milo.appspot.com/ui/p/fuchsia/builders/toolchain.ci/clang-linux-x64-rbe/b8772753421607483249/overview

Some test output from Clang :: AST/ast-dump-stmt-json.cpp:

Script:
--
: 'RUN: at line 1';   /b/s/w/ir/x/w/llvm_build/bin/clang -cc1 -internal-isystem /b/s/w/ir/x/w/llvm_build/lib/clang/18/include -nostdsysteminc -std=c++2a -triple x86_64-linux-gnu -fcxx-exceptions -ast-dump=json /b/s/w/ir/x/w/llvm-llvm-project/clang/test/AST/ast-dump-stmt-json.cpp | /b/s/w/ir/x/w/llvm_build/bin/FileCheck /b/s/w/ir/x/w/llvm-llvm-project/clang/test/AST/ast-dump-stmt-json.cpp
--
Exit Code: 1

Command Output (stderr):
--
/b/s/w/ir/x/w/llvm-llvm-project/clang/test/AST/ast-dump-stmt-json.cpp:1471:16: error: CHECK-NEXT: is not on the line after the previous match
// CHECK-NEXT: },
               ^
<stdin>:1555:2: note: 'next' match was here
 },
 ^
<stdin>:1553:18: note: previous match ended here
 "implicit": true,
                 ^
<stdin>:1554:1: note: non-matching line after previous match is here
 "visibility": "default"
^

Input file: <stdin>
Check file: /b/s/w/ir/x/w/llvm-llvm-project/clang/test/AST/ast-dump-stmt-json.cpp

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           .
           .
           .
        1550:  "begin": {}, 
        1551:  "end": {} 
        1552:  }, 
        1553:  "implicit": true, 
        1554:  "visibility": "default" 
        1555:  }, 
next:1471      !~  error: match on wrong line
        1556:  { 
        1557:  "id": "0x558ee63a5d00", 
        1558:  "kind": "ReturnsNonNullAttr", 
        1559:  "range": { 
        1560:  "begin": {}, 
           .
           .
           .
>>>>>>

--