Apply clang-tidy (#107)
* C++ tidy: terminate namespaces with a closing comment
* C++ tidy: do not use C-style cast to convert between unrelated types
* C++ tidy: do not convert integer literal to bool, use bool literal instead
* C++ tidy: do not use static_cast to downcast from a base to a derived class; use dynamic_cast instead
* C++ tidy: more camelCase
* clang-tidy config file
* C++ tidy: readability-identifier-naming
* C++ tidy: modernize-use-default
* C++ tidy: modernize-use-auto
* C++ tidy: performance-*
* C++ tidy: misc-unused-parameters
* C++ tidy: modernize-use-auto
* C++ tidy: modernize-loop-convert
* C++ tidy: modernize-use-bool-literals
* C++ tidy: modernize-use-emplace
* C++ tidy: modernize-use-nullptr
* C++ tidy: modernize-deprecated-headers
* C++ tidy: modernize-pass-by-value
* C++ tidy: cppcoreguidelines-pro-type-static-cast-downcast
* C++ tidy: readability-inconsistent-declaration-parameter-name
* C++ tidy: readability-container-size-empty
* C++ tidy: modernize-use-default
* C++ tidy: modernize-use-override
* C++ tidy: modernize-loop-convert
* C++ tidy: modernize-use-auto
* C++ tidy: modernize-pass-by-value
* C++ tidy: performance-for-range-copy
* C++ tidy: readability-avoid-const-params-in-decls
* C++ tidy: modernize-use-using
* C++ tidy: remove unnecesary 'typedef'
* C++ tidy: misc-definitions-in-headers
* C++ tidy: Gulp task
* C++ tidy: Add compile_commands.json file
* C++ tidy: Update .clang-tidy
* C++ tidy: Add run-clang-tidy.py
* Rename compile_commands.json to compile_commands_template.json
* clang-tidy: fix path in gulpfile.js
* C++ tidy: Use clang-tools-prebuilt npm
* Rename kXxxx Google constants to CamelCase
* Put consistent names in worker/scripts/*
* C++ tidy: Update .clang-tidy
* C++ tidy: rename 'k_' and 'v_' by JsonString
* C++: replace ugly enum with static constexpr
* Rename "gulp tidy:worker" to "gulp tidy"
* Include "gulp lint" in .travis.yml
* BUILDING: document "gulp tidy"
* Add 'readability-identifier-naming' check to .clang-format
* C++ tidy: readability-identifier-naming
* Apply format rules defined in .clang-format file
* Add '-header-filter' option to clang-tidy
* C++ tidy: readability-delete-null-pointer
* C++ tidy: readability-else-after-return
* Remove IP.cpp from compile commands database
* C++ tidy: readability-else-implicit-bool-cast
* C++ tidy: readability-*
* Enable all readabiliy checks
* C++ tidy: modernize-use-auto
* C++ tidy: modernize-*
* Add '-header-filter' option to clang-tidy
* Override IP.cpp with the version produced by Ragel.
* C++ tidy: misc-string-compare
* Travis-CI: Add `gulp tidy`
* clang-tidy: make clang-analyzer-core.uninitialized.Assign happy
* clang-tidy: `gulp tidy` just works on OSX (for now).
* Activate all the checks with some explicit exceptions
* Move clang-tools-prebuilt to optionalDependencies.
* Improve BUILDING.md.
* Exclude 'cert-*' and 'clang-analyzer-optin.osx.*' checks
* Use clang-tools-prebuilt 0.1.4 and add `gulp tidy` to Travis.
* C++ tidy: google-readability-casting
* Update deps so `gulp tidy` works on Node 4.
* clang-tidy: ignore some OpenSSL stuff
* Use static_cast everywhere.
* clang-tidy: make misc-incorrect-roundings rule (and some others) happy
* clang-tidy: really get rid of misc-incorrect-roundings
* clang-tidy: apply cppcoreguidelines-pro-type-cstyle-cast check
* C++ tidy: cppcoreguidelines-pro-type-member-init
* clang-tidy: enable cppcoreguidelines-pro-type-member-init (use {} for member/variable initialization)
* Use brace initialization to convert arithmetic types
* clang-format: initialize with { foo }
* worker .cpp files: Use { foo } initializers
* clang-tidy: use auto when initializing with a cast to avoid duplicating the type name [modernize-use-auto]
正在显示
| ... | @@ -39,14 +39,18 @@ | ... | @@ -39,14 +39,18 @@ |
| "sdp-transform": "^2.3.0" | "sdp-transform": "^2.3.0" | ||
| }, | }, | ||
| "devDependencies": { | "devDependencies": { | ||
| "gulp": "git://github.com/gulpjs/gulp.git#4.0", | "gulp": "gulpjs/gulp.git#4.0", | ||
| "gulp-clang-format": "^1.0.23", | "gulp-clang-format": "^1.0.23", | ||
| "gulp-eslint": "^3.0.1", | "gulp-eslint": "^3.0.1", | ||
| "gulp-rename": "^1.2.2", | |||
| "gulp-replace": "^0.5.4", | "gulp-replace": "^0.5.4", | ||
| "gulp-shell": "^0.6.3", | "gulp-shell": "^0.6.3", | ||
| "gulp-touch-cmd": "0.0.1", | "gulp-touch-cmd": "0.0.1", | ||
| "tap": "^10.3.2" | "tap": "^10.3.2" | ||
| }, | }, | ||
| "optionalDependencies": { | |||
| "clang-tools-prebuilt": "^0.1.4" | |||
| }, | |||
| "scripts": { | "scripts": { | ||
| "test": "gulp test", | "test": "gulp test", | ||
| "postinstall": "make Release" | "postinstall": "make Release" | ||
| ... | ... |
worker/.clang-tidy
0 → 100644
差异被折叠。
差异被折叠。
worker/scripts/clang-tidy.py
0 → 100755
差异被折叠。
请
注册
或者
登录
后发表评论