Comments (12)
I randomly selected a simple code repo from github: https://github.com/changkun/modern-cpp-tutorial
all .cpp files are failing with
cppnamelint check -config cppnamelint.toml ...
Note: I cross-checked with the code of cppnamelint - no issues
from cppnamelint.
I have some more findings and will create a follow up ticket
from cppnamelint.
looks like it fails here:
Common.cpp / 147:
if (0 == Tool.run(NewFactory.get())) {
HTH
from cppnamelint.
Hi @ruedbi ,
Recently, I am trying to merge this major functions to Clang-Tidy
, Clang-Tidy provides enormous static analysis checks for source code and it is an official utility too. So I made a patch for integration. You can find it with the link, https://reviews.llvm.org/D86671. If you need those functions, could you do me a favor to leave a message there, maybe reviewers will review it sooner.
Back to you original topic. If you need it too, can you please give me your code snippets?
from cppnamelint.
CaseType could be interesting, Hungarian notation not so much
what kind of message would help?
from cppnamelint.
Code snippets: You mean the code that causes the processing error?
That is not possible (commercial code), but maybe I find some public code to reproduce the issue.
from cppnamelint.
Code snippets: You mean the code that causes the processing error?
That is not possible (commercial code), but maybe I find some public code to reproduce the issue.
yep, I need it to reproduce.
Maybe you can have it a look to Clang-Tidy, readability-identifier-naming
(https://clang.llvm.org/extra/clang-tidy/checks/readability-identifier-naming.html).
from cppnamelint.
thanks for the hint to readability-identifier-naming, I will check that too
result: not configurable, finds a lot of readabiliy issues, but nothing naming-related (quite unlikely ;-) )
from cppnamelint.
Hi @ruedbi
Sorry for replying you late.
I have fixed the issue, can you have it a try with your project?
https://github.com/dougpuob/cppnamelint/releases/tag/untagged-990be7794a2930c5479c
If you are interested in the details, click here (ef537f9)
Another I told you is incorrect about building this project with newer llvm. I can built it with llvmorg-12.0.0-rc3. There are several issues I will try to improve later (made action items for them).
- build with newer llvm version (with vcpkg on local and Azure CI/CD) #58
- change the logger. #59
- follow-up this issue, why this issue cannot be duplicated on Windows version. #60
Anyway, thank for your report. Please let me know if the issue was fixed with your project, if fixed I will close this issue.
from cppnamelint.
Hi Douglas,
thanks for your bugfix, I highly appreciate that.
The tag was not accessible, so I had to recompile with llvm 8 using ef537f9. This version does not compile with llvm 12 though (not sure if it was to be expected).
Good news: I can confirm that the processing errors are gone. I will proceed testing.
from cppnamelint.
Hi Douglas,
thanks for your bugfix, I highly appreciate that.
The tag was not accessible, so I had to recompile with llvm 8 using ef537f9. This version does not compile with llvm 12 though (not sure if it was to be expected).Good news: I can confirm that the processing errors are gone. I will proceed testing.
Sounds great! Now you can't build with newer llvm with current CMakeLists.txt. I will update it later (#58 is the follow-up action item).
I created v0.3.4 for it.
from cppnamelint.
Close this issue, because I got the good feedback from @ruedbi .
I have some more findings and will create a follow up ticket
Sure & thank you.
from cppnamelint.
Related Issues (20)
- Random failed on macOS version on Azure DevOps. HOT 1
- [Bug] MFC macro function can't be detect correctly
- Added several config options for debugging log
- Is it a correct behavior in C++?
- Seems like an invalid decl with class
- Failed to detect variable in structu
- [Help] How to get error info from libtooling?
- [Issue] Is it correct behavior if a .cpp file without its header file?
- Build description typo HOT 1
- Build fails with latest llvm HOT 3
- [Improve] Build with newer LLVM version (11.0.0)
- [Improve] Change the logger
- [Question] Why this issue cannot be duplicated on Windows version?
- Less findings than expected HOT 4
- Unexpected findings HOT 10
- Fix for using the python file to run on entire directory and produce json out HOT 2
- Specific rule to check private member variable
- Unexpected report when using ClassName=UpperCamel HOT 2
- Could not find a package configuration file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cppnamelint.