summaryrefslogtreecommitdiff
path: root/Meta/lint-clang-format.sh
AgeCommit message (Collapse)Author
2022-12-03Meta: Switch to clang-format-15 as the standard formatterLinus Groh
The two major changes noticeable on the SerenityOS codebase are: - Much improved support for const placement, clang-format-14 ignored our east-const configuration in various places - Different formatting for requires clauses, now breaking them onto their own line, which helps with readability a bit Current versions of CLion also ship LLVM 15, so the built-in formatting now matches CI formatting again :^)
2022-11-08Kernel: Split the Ext2FileSystem.{cpp,h} files into smaller componentsLiav A
2022-10-22Meta: Detect Homebrew clang-formatDaniel Bertalan
Homebrew does not add upstream LLVM's install location to $PATH so as not to conflict with XCode tools, so we need to run `brew --prefix llvm` to figure out its install path.
2022-05-21LibCodeComprehension: Re-organize code comprehension related codeItamar
This moves all code comprehension-related code to a new library, LibCodeComprehension. This also moves some types related to code comprehension tasks (such as autocomplete, find declaration) out of LibGUI and into LibCodeComprehension.
2022-04-23Meta: Use clang-format from the Clang toolchain if availableDaniel Bertalan
2022-04-01Meta: Switch to clang-format-14 as the standard formatterIdan Horowitz
Now that clang-format-14 ubuntu packages are available, it's time to finally upgrade our clang-format version. This version brings with it a bunch of useful features with const-placement being the most notable. These will be enabled in the following commits.
2021-11-02Meta: Adhere to latest ScriptCheck standards (SC2268)thislooksfun
2021-08-14Tests: Add regression tests for the LibCpp preprocessorItamar
Similarly to the LibCpp parser regression tests, these tests run the preprocessor on the .cpp test files under Userland/LibCpp/Tests/preprocessor, and compare the output with existing .txt ground truth files.
2021-08-14LibCpp: Move parser tests to Userland/Libraries/LibCpp/Tests/parserItamar
2021-08-07Meta: Remove syslog.h from clang-format exclusion listAndrew Kaster
Before Libraries was moved to Userland/Libraries syslog.h had a bunch of manually aligned defines and array initializations. Andreas seems to have formatted the file with clang-format as part of that file move. Since syslog.h is now properly formatted, we don't need to exclude it from the linter list.
2021-07-15Meta: Do not warn user about too modern clang-formatRiyyi
To prevent warnings for users of varying distributions, do not warn the user if the clang-version is higher than the expected version.
2021-05-19LibCpp: Add regression tests for the parserItamar
For each .cpp file in the test suite data, there is a .ast file that represents the "known good" baseline of the parser result. Each .cpp file goes through the parser, and the result of invoking `ASTNode::dump()` on the root node is compared to the baseline to find regressions. We also check that there were no parser errors when parsing the .cpp files.
2021-05-19CppLanguageServer: Put cpp test files in /home/anon/cpp-tests/Itamar
This is similar to the LibJS test data that resides in /home/anon/js-tests. It's more convenient than storing the test programs as raw strings in the code.
2021-04-19Meta: Remove references to Userland/Libraries/LibELF/exec_elf.hBrendan Coles
2021-03-03Meta: Stop excluding getopt.cpp from lintingIdan Horowitz
This file was already "serenified" by @bugaevc long ago.
2021-03-03LibCore+LibHTTP+LibGfx: Switch to LibCompressIdan Horowitz
This commit removes the only 3rd party library (and its usages) in serenity: puff, which is used for deflate decompression. and replaces it with the existing original serenity implementation in LibCompress. :^)
2021-02-08Kernel: Make Arch/i386/CPU.cpp safe to run through clang-formatAnotherTest
This file was far too messy, and touching it was a major pain. Also enable clang-format linting on it.
2021-01-22Meta: Get building on NixOS (#5005)Jonathan Turner
2021-01-12Libraries: Move to Userland/Libraries/Andreas Kling
2021-01-10Meta: Only complain about linter tools if relevant files have changedAndrew Kaster
2020-12-31Meta+Docs+CI: Require clang-format >= 11Linus Groh
2020-12-27Meta: Update lint-{clang-format,shell-scripts}.sh to take a list of filesLinus Groh
This should speed up pre-commit a bit as only files that are staged will be processed, and clang-format and shellcheck are only invoked once, not for every file. When no arguments are given (e.g. on CI), it still uses 'git ls-files'.
2020-12-22Meta: Use the correct clang-formatBen Wiederhake
After all the work of determining the correct name for clang-format-10, we forgot to actually use it. How silly!
2020-12-01Meta: Nicer wording in lintBen Wiederhake
2020-09-25Meta: Provide script to automatically flag bad formattingBen Wiederhake