Commit Graph

6 Commits

Author SHA1 Message Date
Kazu Hirata 943aa1bfac Add modernize-use-default-member-init.UseAssignment to .clang-tidy 2022-01-23 20:32:52 -08:00
Kazu Hirata 1bb65bd58f Add IgnoreBaseInCopyConstructors to .clang-tidy
gcc issues warnings on copy constructors that do not explicitly
initialize the base class.
2022-01-03 13:41:32 -08:00
David Blaikie 49454ebc56 .clang-tidy: Disable misc-no-recursion in general/across the monorepo 2021-06-08 08:31:33 -07:00
Nathan James f99133e853 - Update .clang-tidy to ignore parameters of main like functions for naming violations in clang and llvm directory
Summary: Every call to a main like function in llvm and clang lib violates the naming convention for parameters. This prevents clang-tidy warning on such breaches.

Reviewers: alexfh, hokein

Reviewed By: hokein

Subscribers: merge_guards_bot, aheejin, cfe-commits, llvm-commits

Tags: #clang, #llvm

Differential Revision: https://reviews.llvm.org/D73715
2020-01-31 16:49:45 +00:00
Ilya Biryukov d226bc8397 Disable tidy checks with too many hits
Summary:
Some tidy checks have too many hits in the codebase, making it hard to spot
other results from clang-tidy, therefore rendering the tool less useful.

Two checks were disabled:
  - misc-non-private-member-variable-in-classes in the whole LLVM monorepo,
    it is very common to have those in LLVM and the style guide does not forbid
    them.
  - readability-identifier-naming in the clang subtree. There are thousands of
    violations in 'Sema.h' alone.

Before the change, 'Sema.h' had >1000 tidy warnings, after the change the number
dropped to 3 warnings (unterminated namespace comments).

Reviewers: alexfh, hokein

Reviewed By: hokein

Subscribers: llvm-commits, cfe-commits

Tags: #clang, #llvm

Differential Revision: https://reviews.llvm.org/D57573

llvm-svn: 352862
2019-02-01 11:20:13 +00:00
James Y Knight 149be18dbc Add .clang-tidy and .clang-format files to the toplevel of the
repository (the same content as those in llvm/ and clang/).

llvm-svn: 352516
2019-01-29 16:43:16 +00:00