Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » [PROPOSAL] CppCheck support
Re: [PROPOSAL] CppCheck support [message #61739 is a reply to message #61660] |
Sat, 19 July 2025 13:43  |
 |
deep
Messages: 273 Registered: July 2011 Location: Bangalore
|
Experienced Member |
|
|
Hi
I updated my local git to merge CPP check with nightly build with following changes
Linter.cpp file patch
diff -U 3 /WC_Linter/uppsrc/ide/Linter/Linter.cpp /upp_lint/uppsrc/ide/Linter/Linter.cpp
--- /WC_Linter/uppsrc/ide/Linter/Linter.cpp Fri Jul 18 19:18:37 2025
+++ /upp_lint/uppsrc/ide/Linter/Linter.cpp Sat Jul 19 16:45:54 2025
@@ -74,7 +74,7 @@
String Linter::GetPackagePath() const
{
- return TheIde()->GetActivePackagePath();
+ return TheIde()->GetActivePackageDir();
}
void Linter::CheckFile()
@@ -89,7 +89,8 @@
{
if(!Exists())
return;
- Vector<String> paths = { GetFileFolder(GetPackagePath()) };
+ Vector<String> paths = { GetPackagePath() };
DoCheck(Scope::Package, paths);
}
@@ -100,7 +101,8 @@
Vector<String> paths;
const Workspace& wspc = GetIdeWorkspace();
for(int i = 0; i < wspc.GetCount(); i++)
- paths.Add() = GetFileFolder(PackagePath(wspc[i]));
+ paths.Add() = PackageDirectory(wspc[i]);
DoCheck(Scope::Project, paths);
}
And applied changes manually to following files.
Lines to be inserted marked ++
/ide/idebar.cpp file
#ifdef PLATFORM_POSIX
if(IsValgrind())
menu.Add(b, AK_VALGRIND, THISBACK(Valgrind))
.Help("Build application & run in valgring");
#endif
menu.Separator();
++ #ifdef flagLINTER // Experimental static analyzer tools support.
++ Linter::StdMenu(menu);
++ #endif
}
}
/ide/ide.upp file
Report,
Core/SSL,
plugin/md,
ide/clang,
++ ide/Linter;
/ide/ide.h file
#include <TextDiffCtrl/TextDiffCtrl.h>
#include <ide/Designers/Designers.h>
#include <ide/Android/Android.h>
#include <plugin/md/Markdown.h>
++ #ifdef flagLINTER
++ #include <ide/Linter/Linter.h>
++ #endif
#include "About.h"
#include "MethodsCtrls.h"
#define LAYOUTFILE <ide/ide.lay>
#include <CtrlCore/lay.h>
Use flags for compilation GUI LINTER
Warm Regards
Deepak
|
|
|
 |
|
[PROPOSAL] CppCheck support
By: Oblivion on Sun, 22 January 2023 18:00
|
 |
|
Re: [PROPOSAL] CppCheck support
By: koldo on Mon, 23 January 2023 08:20
|
 |
|
Re: [PROPOSAL] CppCheck support
By: Oblivion on Sat, 04 February 2023 11:54
|
 |
|
Re: [PROPOSAL] CppCheck support
By: deep on Sat, 04 February 2023 13:38
|
 |
|
Re: [PROPOSAL] CppCheck support
By: Klugier on Sat, 04 February 2023 21:10
|
 |
|
Re: [PROPOSAL] CppCheck support
By: Oblivion on Sat, 04 February 2023 22:05
|
 |
|
Re: [PROPOSAL] CppCheck support
By: Oblivion on Sun, 05 February 2023 00:26
|
 |
|
Re: [PROPOSAL] CppCheck support
By: Oblivion on Sun, 05 February 2023 15:08
|
 |
|
Re: [PROPOSAL] CppCheck support
By: Oblivion on Sat, 11 February 2023 23:55
|
 |
|
Re: [PROPOSAL] CppCheck support
By: Oblivion on Wed, 19 April 2023 00:06
|
 |
|
Re: [PROPOSAL] CppCheck support
By: Oblivion on Thu, 20 April 2023 21:40
|
 |
|
Re: [PROPOSAL] CppCheck support
By: Oblivion on Sun, 23 April 2023 18:14
|
 |
|
Re: [PROPOSAL] CppCheck support
By: Oblivion on Sat, 29 April 2023 13:36
|
 |
|
Re: [PROPOSAL] CppCheck support
By: deep on Sun, 08 September 2024 11:26
|
 |
|
Re: [PROPOSAL] CppCheck support
By: Oblivion on Sun, 08 September 2024 13:03
|
 |
|
Re: [PROPOSAL] CppCheck support
By: deep on Sun, 08 September 2024 20:08
|
 |
|
Re: [PROPOSAL] CppCheck support
By: Oblivion on Wed, 23 April 2025 19:43
|
 |
|
Re: [PROPOSAL] CppCheck support
By: deep on Sat, 26 April 2025 14:13
|
 |
|
Re: [PROPOSAL] CppCheck support
By: deep on Sat, 19 July 2025 13:43
|
Goto Forum:
Current Time: Sat Aug 02 18:55:56 CEST 2025
Total time taken to generate the page: 0.08952 seconds
|