Skip to content

Commit

Permalink
feat: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hongxuchen committed Oct 12, 2023
1 parent 25e16d4 commit c89cbd0
Show file tree
Hide file tree
Showing 24 changed files with 14 additions and 116 deletions.
Empty file removed docs/AFL.md
Empty file.
1 change: 0 additions & 1 deletion docs/Infer.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/clang-cxxapi.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ Since LLVM-3.9, LLVM official has [removed the c++ backend](https://reviews.llvm
This backend is sometimes useful for beginners to easily generate some LLVM IR programatically. For now, a project called [llvm-cxxapi](https://github.com/zhangjiantao/llvm-cxxapi)
helps deal with the issue.

NOTE:
the use of C++ backend is like:

```bash
# generate IR
clang++ -S -emit-llvm input.cpp -o input.ll
Expand Down
5 changes: 5 additions & 0 deletions docs/clang-format.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Inside the project root directory, run

```bash
find . -type f \( -name "*.cpp" -o -name "*.cc" -o -name "*.h" -o -name "*.hh" -o -name "*.hpp"\) | xargs clang-format -i
```
File renamed without changes.
8 changes: 0 additions & 8 deletions docs/clang-tools.md → docs/clang-tidy.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
## clang-format
Inside the project root directory, run

```bash
find . -type f \( -name "*.cpp" -o -name "*.cc" -o -name "*.h" -o -name "*.hh" -o -name "*.hpp"\) | xargs clang-format -i
```

### clang-tidy

```
find -name "*.cpp" | xargs -I FILE clang-tidy -checks=modernize-use-* -fix FILE -p build/compile_commands.json
Expand Down
1 change: 1 addition & 0 deletions docs/sanitizers/ASAN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://clang.llvm.org/docs/AddressSanitizer.html
1 change: 1 addition & 0 deletions docs/sanitizers/MSAN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://clang.llvm.org/docs/MemorySanitizer.html
7 changes: 3 additions & 4 deletions docs/sanitizers/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
## Useful Links
- [GCC Instrumentation Options](https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html)


## Presentation/Talks
- [Sanitize, Fuzz, and Harden Your C++ Code](https://www.youtube.com/watch?v=FP8zFhB_cOo) by Kostya Serebryany (kcc@google.com), [Slides](https://www.usenix.org/sites/default/files/conference/protected-files/enigma_slides_serebryany.pdf)

## Useful Links
- [GCC Instrumentation Options](https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html)
2 changes: 2 additions & 0 deletions docs/sanitizers/TSAN.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
https://clang.llvm.org/docs/ThreadSanitizer.html

## FAQ
Q: Why each byte-to-byte mapping?
A: Multi-threading
1 change: 1 addition & 0 deletions docs/sanitizers/UBSAN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html
5 changes: 0 additions & 5 deletions snippets/cc/.gitignore

This file was deleted.

5 changes: 0 additions & 5 deletions snippets/cc/.luarc.json

This file was deleted.

1 change: 0 additions & 1 deletion snippets/cc/README.md

This file was deleted.

76 changes: 0 additions & 76 deletions snippets/cc/myclang/main.cc

This file was deleted.

8 changes: 0 additions & 8 deletions snippets/cc/myclang/xmake.lua

This file was deleted.

7 changes: 0 additions & 7 deletions snippets/cc/xmake.lua

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit c89cbd0

Please sign in to comment.