Skip to content

Commit 76fc3ef

Browse files
committed
tools/clang/declextract: move from tools/syz-declextract/clangtool
Some of the common helpers may be reused across different Clang tools (currently json.h and .clang-format). Move the files to allow such reuse.
1 parent 1a34186 commit 76fc3ef

File tree

6 files changed

+3
-2
lines changed

6 files changed

+3
-2
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,8 @@ format_cpp:
272272
clang-format --style=file -i executor/*.cc executor/*.h \
273273
executor/android/android_seccomp.h \
274274
tools/kcovtrace/*.c tools/kcovfuzzer/*.c tools/fops_probe/*.cc \
275-
tools/syz-declextract/clangtool/*.cpp tools/syz-declextract/clangtool/*.h
275+
tools/clang/*.h \
276+
tools/clang/declextract/*.h tools/clang/declextract/*.cpp
276277

277278
format_sys: bin/syz-fmt
278279
bin/syz-fmt all
File renamed without changes.
File renamed without changes.

tools/syz-declextract/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ target_link_libraries(syz-declextract PRIVATE clangTooling)
2929
```
3030
mkdir $LLVM/clang/syz-declextract
3131
```
32-
Copy `tools/syz-declextract/clangtool/*.{cpp,h}` files to `$LLVM/clang/syz-declextract/` directory.
32+
Copy `tools/clang/declextract/*.{cpp,h}` and `tools/clang/*.h` files to `$LLVM/clang/syz-declextract/` directory.
3333
```
3434
LLVM_BUILD=$PWD/syz
3535
mkdir $LLVM_BUILD && cd $LLVM_BUILD

0 commit comments

Comments
 (0)