Code Monkey home page Code Monkey logo

clang-tools-extra's Introduction

//===----------------------------------------------------------------------===//
// Clang Tools repository
//===----------------------------------------------------------------------===//

Welcome to the repository of extra Clang Tools.  This repository holds tools
that are developed as part of the LLVM compiler infrastructure project and the
Clang frontend.  These tools are kept in a separate "extra" repository to
allow lighter weight checkouts of the core Clang codebase.

This repository is only intended to be checked out inside of a full LLVM+Clang
tree, and in the 'tools/extra' subdirectory of the Clang checkout.

All discussion regarding Clang, Clang-based tools, and code in this repository
should be held using the standard Clang mailing lists:
  http://lists.llvm.org/mailman/listinfo/cfe-dev

Code review for this tree should take place on the standard Clang patch and
commit lists:
  http://lists.llvm.org/mailman/listinfo/cfe-commits

If you find a bug in these tools, please file it in the LLVM bug tracker:
  http://llvm.org/bugs/

clang-tools-extra's People

Contributors

aaronballman avatar adrian-prantl avatar ajbernal avatar alexfh avatar angargo avatar atoker avatar bergeret avatar chandlerc avatar chapuni avatar d0k avatar djasper avatar dwblaikie avatar espindola avatar eugenezelenko avatar hokein avatar jtsoftware avatar madsravn avatar mgehre avatar pcc avatar r4nt avatar rui314 avatar sam-panzer avatar sarcasm avatar sbenzaquen avatar topperc avatar vmiklos avatar xazax-hun avatar yrnkrn avatar zmodem avatar zygoloid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

clang-tools-extra's Issues

readability-identifier-naming option FunctionCase changes make_shared and allocate_shared

When running clang-tidy-9 using the script run-clang-tidy-9.py, with these command:

run-clang-tidy-9.py -header-filter='.' -checks='-,readability-identifier-naming' -fix -config="{CheckOptions: [ {key: readability-identifier-naming.ClassCase, value: CamelCase}, {key: readability-identifier-naming.StructCase, value: CamelCase}, {key: readability-identifier-naming.TypedefCase, value: CamelCase}, {key: readability-identifier-naming.VariableCase, value: lower_case}, {key: readability-identifier-naming.ParameterCase, value: camelBack}, {key: readability-identifier-naming.FunctionCase, value: camelBack}, {key: readability-identifier-naming.NamespaceCase, value: lower_case}, {key: readability-identifier-naming.GlobalConstantCase, value: UPPER_CASE}, {key: readability-identifier-naming.EnumCase, value: CamelCase} ]}"

"make_shared" was changed to "makeShared" and "allocated_shared" was changed to "AllocatedShared".

Maybe a list of exceptions / reserved function names?

google-explicit-constructor with specified `explicit(false)`

Explicit constructor check fix is wrong when already specified explicit(false) on that constructor

struct A {};

struct B {
  explicit(false) B(A) {}
};

The checker tries to fix it with adding a new explicit keyword which makes compilation error.

struct A {};

struct B {
  explicit(false) explicit B(A) {}
};

No warning/error should exist when specifying the explicit(false) attribute.

Clang-Tidy line-filter documentation question?

I am currently using the CXX_CLANG_TIDY functionality in CMake to add clang-tidy to targets. I have one file that is generated during the build that is out of my control that generates warnings for which I would like to suppress. I have tried the two line filters below but neither seem to change anything the header still produces warnings. Is my approach incorrect?

The file that contains the header that I would like to suppress:

#include <tesseract_monitoring/EnvironmentMonitorDynamicReconfigureConfig.h>

Line Filter Tried:

-header-filter=.* -line-filter=[{"name":"tesseract_monitoring/EnvironmentMonitorDynamicReconfigureConfig.h"}]

and

-header-filter=.* -line-filter=[{"name":"EnvironmentMonitorDynamicReconfigureConfig.h"}]

Clang-tidy Crashes -- Double-delete Failure

clang-tidy.exe intermittently crashes with the following assertion failure
[both release and debug builds on X64]

D:\3\llvm\include\llvm\ADT\IntrusiveRefCntPtr.h:79
assert (ref_cnt > 0 && "Reference count is already zero.");

Repro: clang-tidy -checks=* file.c -- failed intermittently on almost all input files.
For example file.c = int main() { return 1+1; }

do not implicitly decay an array into a pointer.

Warning Clang : do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead.

m_pCmdLine = new CCommandLine(m_lpCmdLine); // warning

// CCommandLine Headerfile
CCommandLine(LPTSTR lpCmdLine)

I run clang as a check on an MFC project I work on. Why does it give me a warning when making a copy of a Long Pointer to a TStr? What explicit cast does it wants from me to fix this warning?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.