File tree Expand file tree Collapse file tree 4 files changed +37
-0
lines changed
Expand file tree Collapse file tree 4 files changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ Checks : readability-identifier-naming
3+ CheckOptions :
4+ - { key: readability-identifier-naming.NamespaceCase, value: lower_case }
Original file line number Diff line number Diff line change 1+ ## clangtidy
2+
3+ Test [ ` clangtidy ` ] ( https://premake.github.io/docs/clangtidy )
Original file line number Diff line number Diff line change 1+ if (_ACTION == nil ) then
2+ return
3+ end
4+
5+ local LocationDir = " solution/%{_ACTION}"
6+
7+ workspace " Project"
8+ location (LocationDir )
9+ configurations {" Debug" , " Release" }
10+
11+ objdir (path .join (LocationDir , " obj" )) -- premake adds $(configName)/$(AppName)
12+ targetdir (path .join (LocationDir , " bin/%{cfg.buildcfg}" ))
13+
14+ startproject " app"
15+
16+ project " app"
17+ kind " ConsoleApp"
18+ targetname " app"
19+
20+ files { " src/main.cpp" }
21+ clangtidy " On"
22+
Original file line number Diff line number Diff line change 1+
2+
3+ namespace ShouldBeLowerCase { // warning: invalid case style for namespace 'ShouldBeLowerCase' [readability-identifier-naming]
4+ }
5+
6+ int main ()
7+ {
8+ }
You can’t perform that action at this time.
0 commit comments