-
Notifications
You must be signed in to change notification settings - Fork 5
Clang tidy #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Clang tidy #20
Changes from 4 commits
c3a6167
969d0c3
b208e23
846e847
72d10c9
65a937d
c0e1847
07d9128
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {Checks: '*,-cppcoreguidelines-pro-bounds-array-to-pointer-decay,-cppcoreguidelines-pro-bounds-pointer-arithmetic,-hicpp-no-array-decay,-fuchsia-default-arguments,-fuchsia-overloaded-operator,-google-runtime-references,-readability-implicit-bool-conversion,-cppcoreguidelines-pro-bounds-constant-array-index'} |
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -18,7 +18,15 @@ dist_doc_DATA = \ | |||
|
|
||||
| EXTRA_DIST = autogen.sh | ||||
|
|
||||
|
|
||||
| # Check the C++ source code for white-space errors with clang-format. | ||||
|
|
||||
| clang-format: | ||||
| for i in *.hpp *.h */*.cpp Tests/*/*.*pp; do clang-format -style=file $$i >$$i.fixed; done | ||||
| for i in *.hpp *.h */*.cpp Tests/*/*.*pp; do diff -su $$i $$i.fixed && rm -f $$i.fixed; done | ||||
| if ls *.fixed; then exit 1; fi | ||||
|
|
||||
| # Check the C++ source code for errors with clang-tidy. | ||||
|
|
||||
|
||||
Please remove this blank line.
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This odd 🚫 icon above indicates that you have removed the final line feed from the file, and so this line has no line feed. Please configure your text editor to ensure that the file ends with a line feed. I recommend using Vim (MacVim on macOS) or Microsoft Visual Studio Code.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,8 +11,11 @@ steps: | |
| curl https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - | ||
| sudo apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-7 main" | ||
| sudo apt-get update | ||
| sudo apt-get install -y --no-install-recommends clang-format-7 | ||
| sudo apt-get install -y --no-install-recommends clang-format-7 clang-tidy-7 | ||
| sudo ln -s clang-format-7 /usr/bin/clang-format | ||
| sudo ln -s clang-tidy-7 /usr/bin/clang-tidy | ||
| displayName: Install clang-format | ||
| - script: make clang-format | ||
| displayName: Run clang-format | ||
| - script: make clang-tidy | ||
| displayName: Run clang-tidy | ||
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this blank line.