summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh
Commit message (Collapse)AuthorAgeFilesLines
* [sanitizers] Redirect stdout and stderr to TASK_LOGEric Christopher2019-12-121-1/+1
| | | | | | | | | | | | At some point cpplint.py became very noisy during a build spewing a few hundred lines of "Done processing..." even with SILENT=1 in cmake. This attempts to redirect the stdout of "Done processing" to the task log along with any errors. Tested by this with and without SILENT=1 to check things. Differential Revision: https://reviews.llvm.org/D71402 Reviewed By: eugenis
* Revert unintentional change to compiler-rt as part of the __bit_reference ↵Eric Christopher2019-12-121-1/+1
| | | | revert.
* Temporarily Revert "[libc++] Fix -Wdeprecated-copy warnings in __bit_reference"Eric Christopher2019-12-121-1/+1
| | | | | | as it's causing test failures due to mismatched visibility. This reverts commit 02bb20223bda5add729402962c70d0ebd0d98af2.
* [compiler-rt] cpplint of inc files in backgroundVitaly Buka2019-09-121-0/+2
| | | | llvm-svn: 371705
* [compiler-rt] Remove some cpplint filtersVitaly Buka2019-09-121-5/+5
| | | | llvm-svn: 371704
* [compiler-rt] Better lint output for .inc filesVitaly Buka2019-09-121-12/+4
| | | | llvm-svn: 371702
* Remove NOLINTs from compiler-rtVitaly Buka2019-09-111-8/+8
| | | | llvm-svn: 371687
* Update compiler-rt cpplint.pyVitaly Buka2019-09-111-4/+13
| | | | | | https://github.com/cpplint/cpplint/commit/adb3500107f409ac5491188ae652ac3f4d03d9d3 llvm-svn: 371675
* [sanitizer] Simplify COMPILER_RT setup in lint scriptVitaly Buka2019-08-281-8/+2
| | | | llvm-svn: 370277
* [compiler-rt] Add ConsumeProbability and ConsumeFloatingPoint methods to FDP.Max Moroz2019-08-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Also slightly cleaned up the comments and changed the header's extension back to `.h` as per comments on https://reviews.llvm.org/D65812. New methods added: * `ConsumeProbability` returns [0.0, 1.0] by consuming an unsigned integer value from the input data and dividing that value by the integer's max value. * `ConsumeFloatingPointInRange` returns a floating point value in the given range. Relies on `ConsumeProbability` method. This method does not have the limitation of `std::uniform_real_distribution` that requires the given range to be <= the floating point type's max. If the range is too large, this implementation will additionally call `ConsumeBool` to decide whether the result will be in the first or the second half of the range. * `ConsumeFloatingPoint` returns a floating point value in the range `[std::numeric_limits<T>::lowest(), std::numeric_limits<T>::min()]`. Tested on Linux, Mac, Windows. Reviewers: morehouse Reviewed By: morehouse Subscribers: kubamracek, mgorny, dberris, delcypher, #sanitizers, llvm-commits Tags: #llvm, #sanitizers Differential Revision: https://reviews.llvm.org/D65905 llvm-svn: 368331
* [compiler-rt] Rename FuzzedDataProvider.h to .hpp and other minor changes.Max Moroz2019-08-061-1/+1
| | | | | | | | | | | | | | | | | | Summary: .hpp makes more sense for this header as it's C++ only, plus it contains the actual implementation. Reviewers: Dor1s Reviewed By: Dor1s Subscribers: kubamracek, dberris, mgorny, delcypher, #sanitizers, llvm-commits Tags: #llvm, #sanitizers Differential Revision: https://reviews.llvm.org/D65812 llvm-svn: 368054
* [compiler-rt] Move FDP to include/fuzzer/FuzzedDataProvider.h for easier use.Max Moroz2019-08-051-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: FuzzedDataProvider is a helper class for writing fuzz targets that fuzz multple inputs simultaneously. The header is supposed to be used for fuzzing engine agnostic fuzz targets (i.e. the same target can be used with libFuzzer, AFL, honggfuzz, and other engines). The common thing though is that fuzz targets are typically compiled with clang, as it provides all sanitizers as well as different coverage instrumentation modes. Therefore, making this FDP class a part of the compiler-rt installation package would make it easier to develop and distribute fuzz targets across different projects, build systems, etc. Some context also available in https://github.com/google/oss-fuzz/pull/2547. This CL does not delete the header from `lib/fuzzer/utils` directory in order to provide the downstream users some time for a smooth migration to the new header location. Reviewers: kcc, morehouse Reviewed By: morehouse Subscribers: lebedev.ri, kubamracek, dberris, mgorny, delcypher, #sanitizers, llvm-commits Tags: #llvm, #sanitizers Differential Revision: https://reviews.llvm.org/D65661 llvm-svn: 367917
* compiler-rt: Rename cc files below test/asan to cppNico Weber2019-08-051-2/+2
| | | | | | See r367803 and similar other changes. llvm-svn: 367887
* compiler-rt: Rename .cc file in test/lsan to .cppFangrui Song2019-08-051-1/+1
| | | | | | Like r367463, but for test/lsan. llvm-svn: 367803
* compiler-rt: Rename .cc file in test/tsan to .cppFangrui Song2019-08-021-1/+1
| | | | | | Like r367463, but for test/tsan. llvm-svn: 367656
* compiler-rt: Rename .cc file in lib/tsan/tests/{rtl,unit} to .cppNico Weber2019-08-011-2/+2
| | | | | | Like r367463, but for tsan/tests/{rtl,unit}. llvm-svn: 367566
* compiler-rt: Rename .cc file in lib/tsan/rtl to .cppNico Weber2019-08-011-1/+1
| | | | | | Like r367463, but for tsan/rtl. llvm-svn: 367564
* compiler-rt: Rename .cc file in lib/msan to .cppNico Weber2019-08-011-1/+1
| | | | | | Like r367463, but for msan. llvm-svn: 367562
* compiler-rt: Rename .cc file in lib/lsan to .cppNico Weber2019-08-011-1/+1
| | | | | | Like r367463, but for lsan. llvm-svn: 367561
* compiler-rt: Rename .cc file in lib/asan/tests to .cppNico Weber2019-08-011-1/+1
| | | | | | Like r367463, but for asan/tests llvm-svn: 367559
* compiler-rt: Rename .cc file in lib/asan to .cppNico Weber2019-08-011-1/+1
| | | | | | Like r367463, but for asan. llvm-svn: 367558
* Try to heal bots after r367551Nico Weber2019-08-011-1/+1
| | | | llvm-svn: 367552
* Attempt to heal bots after r367467Nico Weber2019-07-311-1/+1
| | | | llvm-svn: 367473
* compiler-rt: Rename .cc file in lib/sanitizer_common to .cppNico Weber2019-07-311-1/+1
| | | | | | | | | | | See https://reviews.llvm.org/D58620 for discussion, and for the commands I ran. In addition I also ran for f in $(svn diff | diffstat | grep .cc | cut -f 2 -d ' '); do rg $f . ; done and manually updated (many) references to renamed files found by that. llvm-svn: 367463
* Attempt to heal bots after r367456Nico Weber2019-07-311-1/+1
| | | | llvm-svn: 367462
* [sanitizer] Add Scudo to the sanitizer lint checks.Kostya Kortchinsky2017-11-081-0/+6
| | | | | | | | | | | | | | | | | | | | Summary: Scudo abides by the coding style enforced by the sanitizer_common linter, but as of right now, it's not linter-enforced. Add Scudo to the list of directories checked by check_lint.sh. Also: fixes some linter errors found after getting this running. Reviewers: cryptoad Reviewed By: cryptoad Subscribers: llvm-commits, kubamracek Differential Revision: https://reviews.llvm.org/D39757 llvm-svn: 317699
* [asan] fix one more case where stack-use-after-return is not ↵Kostya Serebryany2017-06-021-1/+1
| | | | | | async-signal-safe (during thread startup). beef-up the test to give it a chance to catch regressions. Also relax the lint to make C++11 more usable. llvm-svn: 304598
* Exclude LLVM sources from lint check.Alexey Samsonov2015-03-041-4/+0
| | | | | | | Checking files from different repository is not nice, and LLVM code follows its own style guide anyway. llvm-svn: 231289
* [sanitizer] Fix bashism in check_lint.sh.Evgeniy Stepanov2015-01-161-1/+1
| | | | llvm-svn: 226267
* [sanitizer] Cleanup linter temporary files.Evgeniy Stepanov2015-01-161-1/+8
| | | | llvm-svn: 226266
* Custom wrappers for DFSanitizing sprintf & snprintf.Lorenzo Martignoni2014-10-081-1/+1
| | | | | | Differential Revision: http://reviews.llvm.org/D5561 llvm-svn: 219293
* Avoid bashisms and switch to /bin/shEd Maste2014-10-071-14/+23
| | | | | | | | Bash may not be installed on some systems by default, like FreeBSD. Differential Revision: http://reviews.llvm.org/D5654 llvm-svn: 219231
* Don't check lint for SpecialCaseList.cppAlexey Samsonov2014-07-091-2/+1
| | | | llvm-svn: 212642
* migrate litlint from argparse to optparse. reenabledGreg Fitzgerald2014-05-141-2/+1
| | | | llvm-svn: 208826
* Disabled litlint. It requires Python 2.7 or laterGreg Fitzgerald2014-05-141-1/+2
| | | | llvm-svn: 208823
* add script to ensure lit test contains %runGreg Fitzgerald2014-05-141-1/+4
| | | | llvm-svn: 208819
* fixed check_lint.sh in standalone buildGreg Fitzgerald2014-03-211-1/+3
| | | | | Change-Id: I30d340bbe6b2028cc0f831399b62521912dcac60 llvm-svn: 204419
* Update sanitizers' bash scripts.Alexey Samsonov2014-02-251-7/+7
| | | | | | | * Fix bash scripts to work on FreeBSD (patch by Viktor Kutuzov) * Update locations of lit tests in check_lint script. llvm-svn: 202145
* [sanitizer] Support most ioctls from /usr/include/sound/.Sergey Matveev2014-01-311-1/+1
| | | | llvm-svn: 200544
* Implement a bunch of custom glibc wrappers & corresponding testsLorenzo Martignoni2013-11-261-0/+6
| | | | llvm-svn: 195749
* Revert r195381, "Implement a bunch of custom glibc wrappers & corresponding ↵Peter Collingbourne2013-11-211-8/+0
| | | | | | | | tests." It broke a buildbot. llvm-svn: 195392
* Implement a bunch of custom glibc wrappers & corresponding tests.Peter Collingbourne2013-11-211-0/+8
| | | | | | | | | | | | | - Introduce several new custom glibc wrappers - Implement some of the not yet implemented wrappers - Refactor and extend the tests - Add script to make sure all declare custom glibc wrappers are implemented & tested. Patch by Lorenzo Martignoni! Differential Revision: http://llvm-reviews.chandlerc.com/D2234 llvm-svn: 195381
* [Sanitizer] Fix lint checker script on MacAlexey Samsonov2013-10-161-4/+4
| | | | llvm-svn: 192791
* tsan: do not leave trash source files in source dirDmitry Vyukov2013-10-151-1/+1
| | | | llvm-svn: 192700
* [libsanitizer] Pass an explicit template to mktemp. Running mktemp without a ↵Alexander Potapenko2013-09-201-3/+3
| | | | | | template doesn't work on Darwin. llvm-svn: 191084
* [sanitizer] Parallelize lint checker scriptAlexey Samsonov2013-08-291-28/+36
| | | | llvm-svn: 189578
* sanitizer_common: Use PYTHON_EXECUTABLE to choose appropriate python.Will Dietz2013-08-281-1/+3
| | | | | | Fixes build on systems where 'python' is not python2. llvm-svn: 189486
* Make lint checker script more robustAlexey Samsonov2013-08-281-3/+4
| | | | llvm-svn: 189479
* Check code style in check-sanitizer commandAlexey Samsonov2013-08-281-9/+11
| | | | llvm-svn: 189475
* Slightly improve lint checker script and fix a few style issuesAlexey Samsonov2013-08-231-28/+32
| | | | llvm-svn: 189092
OpenPOWER on IntegriCloud