Skip to content
This repository was archived by the owner on Aug 9, 2025. It is now read-only.

Commit 2d945e1

Browse files
committed
Indentation cleanup
1 parent b5b2fc1 commit 2d945e1

File tree

8 files changed

+178
-166
lines changed

8 files changed

+178
-166
lines changed

CPPCheckPlugin/CPPCheckPluginPackage.cs

Lines changed: 90 additions & 88 deletions
Large diffs are not rendered by default.

CPPCheckPlugin/Guids.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@
44

55
namespace VSPackage.CPPCheckPlugin
66
{
7-
static class GuidList
8-
{
9-
public const string guidCPPCheckPluginPkgString = "127d8bd3-8cd7-491a-9a63-9b4e89118da9";
10-
public const string guidCPPCheckPluginCmdSetString = "7fcb87ef-4f0c-4713-8217-5bef43dc0de4";
11-
public const string guidToolWindowPersistanceString = "7cc7c6f9-a686-4108-abf5-fab92cd024bc";
12-
public const string guidCPPCheckPluginProjectCmdSetString = "9019df3f-c4aa-499b-b46a-0bcb43d006db";
13-
public const string guidCPPCheckPluginMultiProjectCmdSetString = "a21f0125-e59b-4ac6-8db6-fc01601237d7";
14-
public const string guidCPPCheckPluginMultiItemProjectCmdSetString = "6db8495c-52d3-45d8-ba02-09a3938aa893";
7+
static class GuidList
8+
{
9+
public const string guidCPPCheckPluginPkgString = "127d8bd3-8cd7-491a-9a63-9b4e89118da9";
10+
public const string guidCPPCheckPluginCmdSetString = "7fcb87ef-4f0c-4713-8217-5bef43dc0de4";
11+
public const string guidToolWindowPersistanceString = "7cc7c6f9-a686-4108-abf5-fab92cd024bc";
12+
public const string guidCPPCheckPluginProjectCmdSetString = "9019df3f-c4aa-499b-b46a-0bcb43d006db";
13+
public const string guidCPPCheckPluginMultiProjectCmdSetString = "a21f0125-e59b-4ac6-8db6-fc01601237d7";
14+
public const string guidCPPCheckPluginMultiItemProjectCmdSetString = "6db8495c-52d3-45d8-ba02-09a3938aa893";
1515

16-
public static readonly Guid guidCPPCheckPluginCmdSet = new Guid(guidCPPCheckPluginCmdSetString);
17-
public static readonly Guid guidCPPCheckPluginProjectCmdSet = new Guid(guidCPPCheckPluginProjectCmdSetString);
18-
public static readonly Guid guidCPPCheckPluginMultiProjectCmdSet = new Guid(guidCPPCheckPluginMultiProjectCmdSetString);
19-
public static readonly Guid guidCPPCheckPluginMultiItemProjectCmdSet = new Guid(guidCPPCheckPluginMultiItemProjectCmdSetString);
20-
};
16+
public static readonly Guid guidCPPCheckPluginCmdSet = new Guid(guidCPPCheckPluginCmdSetString);
17+
public static readonly Guid guidCPPCheckPluginProjectCmdSet = new Guid(guidCPPCheckPluginProjectCmdSetString);
18+
public static readonly Guid guidCPPCheckPluginMultiProjectCmdSet = new Guid(guidCPPCheckPluginMultiProjectCmdSetString);
19+
public static readonly Guid guidCPPCheckPluginMultiItemProjectCmdSet = new Guid(guidCPPCheckPluginMultiItemProjectCmdSetString);
20+
};
2121
}

CPPCheckPlugin/ICodeAnalyzer.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,8 @@ private void analyzerOutputHandler(object sendingProcess, DataReceivedEventArgs
285285
if (!String.IsNullOrEmpty(output))
286286
{
287287
addProblemsToToolwindow(parseOutput(output));
288-
try {
288+
try
289+
{
289290
_ = CPPCheckPluginPackage.AddTextToOutputWindowAsync(output + "\n");
290291
}
291292
catch (Exception) { }

CPPCheckPlugin/MainToolWindow.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ public MainToolWindow() : base(null)
3030

3131
public static MainToolWindow Instance
3232
{
33-
get {
33+
get
34+
{
3435
var package = CPPCheckPluginPackage.Instance;
3536
// Searching for existing window
3637
MainToolWindow window = package.FindToolWindow(typeof(MainToolWindow), 0, false) as MainToolWindow;
@@ -53,7 +54,7 @@ public void bringToFront()
5354
frame.IsOnScreen(out onScreen);
5455
if (onScreen == 0)
5556
frame.ShowNoActivate();
56-
*/
57+
*/
5758
}
5859

5960
public void showIfWindowNotCreated()

CPPCheckPlugin/PkgCmdID.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44

55
namespace VSPackage.CPPCheckPlugin
66
{
7-
static class PkgCmdIDList
8-
{
9-
public const uint cmdidCheckProjectCppcheck = 0x101;
10-
public const uint cmdidCheckMultiItemCppcheck = 0x102;
11-
public const uint cmdidStopCppcheck = 0x103;
12-
public const uint cmdidSettings = 0x104;
13-
14-
public const uint cmdidCheckProjectCppcheck1 = 0x105;
15-
public const uint cmdidCheckProjectsCppcheck = 0x106;
16-
public const uint cmdidCheckMultiItemCppcheck1 = 0x107;
17-
};
7+
static class PkgCmdIDList
8+
{
9+
public const uint cmdidCheckProjectCppcheck = 0x101;
10+
public const uint cmdidCheckMultiItemCppcheck = 0x102;
11+
public const uint cmdidStopCppcheck = 0x103;
12+
public const uint cmdidSettings = 0x104;
13+
14+
public const uint cmdidCheckProjectCppcheck1 = 0x105;
15+
public const uint cmdidCheckProjectsCppcheck = 0x106;
16+
public const uint cmdidCheckMultiItemCppcheck1 = 0x107;
17+
};
1818
}

CPPCheckPlugin/Problem.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ public String ProjectName
9393

9494
private ICodeAnalyzer _analyzer;
9595
private SeverityLevel _severity;
96-
private String _messageId;
97-
private String _message;
98-
private String _file;
99-
private String _baseProjectPath;
100-
private String _projectName;
101-
private int _line;
96+
private String _messageId;
97+
private String _message;
98+
private String _file;
99+
private String _baseProjectPath;
100+
private String _projectName;
101+
private int _line;
102102
}
103103
}

CPPCheckPlugin/Settings.cs

Lines changed: 44 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,47 @@
1-
namespace VSPackage.CPPCheckPlugin.Properties {
2-
3-
4-
// This class allows you to handle specific events on the settings class:
5-
// The SettingChanging event is raised before a setting's value is changed.
6-
// The PropertyChanged event is raised after a setting's value is changed.
7-
// The SettingsLoaded event is raised after the setting values are loaded.
8-
// The SettingsSaving event is raised before the setting values are saved.
9-
internal sealed partial class Settings {
10-
11-
public Settings() {
12-
// // To add event handlers for saving and changing settings, uncomment the lines below:
13-
//
14-
// this.SettingChanging += this.SettingChangingEventHandler;
15-
//
16-
// this.SettingsSaving += this.SettingsSavingEventHandler;
17-
//
18-
}
19-
20-
private void SettingChangingEventHandler(object sender, System.Configuration.SettingChangingEventArgs e) {
21-
// Add code to handle the SettingChangingEvent event here.
22-
}
23-
24-
private void SettingsSavingEventHandler(object sender, System.ComponentModel.CancelEventArgs e) {
25-
// Add code to handle the SettingsSaving event here.
26-
}
1+
namespace VSPackage.CPPCheckPlugin.Properties
2+
{
273

28-
private const string CheckSavedFilesOptionKeyName = "CheckSavedFiles";
294

30-
public bool CheckSavedFilesHasValue {
31-
get {
32-
if (this[CheckSavedFilesOptionKeyName] == null)
33-
{
34-
return false;
35-
}
36-
return true;
37-
}
38-
}
39-
}
5+
// This class allows you to handle specific events on the settings class:
6+
// The SettingChanging event is raised before a setting's value is changed.
7+
// The PropertyChanged event is raised after a setting's value is changed.
8+
// The SettingsLoaded event is raised after the setting values are loaded.
9+
// The SettingsSaving event is raised before the setting values are saved.
10+
internal sealed partial class Settings
11+
{
12+
13+
public Settings()
14+
{
15+
// // To add event handlers for saving and changing settings, uncomment the lines below:
16+
//
17+
// this.SettingChanging += this.SettingChangingEventHandler;
18+
//
19+
// this.SettingsSaving += this.SettingsSavingEventHandler;
20+
//
21+
}
22+
23+
private void SettingChangingEventHandler(object sender, System.Configuration.SettingChangingEventArgs e)
24+
{
25+
// Add code to handle the SettingChangingEvent event here.
26+
}
27+
28+
private void SettingsSavingEventHandler(object sender, System.ComponentModel.CancelEventArgs e)
29+
{
30+
// Add code to handle the SettingsSaving event here.
31+
}
32+
33+
private const string CheckSavedFilesOptionKeyName = "CheckSavedFiles";
34+
35+
public bool CheckSavedFilesHasValue
36+
{
37+
get
38+
{
39+
if (this[CheckSavedFilesOptionKeyName] == null)
40+
{
41+
return false;
42+
}
43+
return true;
44+
}
45+
}
46+
}
4047
}

CPPCheckPlugin/SourceFile.cs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public void addIncludePaths(IEnumerable<string> paths)
104104
public void addMacro(string macro)
105105
{
106106
if (!String.IsNullOrEmpty(macro) && !macro.Equals("\\\"\\\""))
107-
{
107+
{
108108
_activeMacros.Add(macro);
109109
}
110110
}
@@ -217,16 +217,17 @@ private static string cleanPath(string path)
217217
return result;
218218
}
219219

220-
private string _fullPath = null;
220+
private string _fullPath = null;
221221
private string _projectBasePath = null;
222-
private string _projectName = null;
222+
private string _projectName = null;
223223
private List<string> _includePaths = new List<string>();
224224
private List<string> _activeMacros = new List<string>();
225225
private List<string> _macrosToUndefine = new List<string>();
226226
private VCCompilerVersion _compilerVersion;
227227
}
228228

229-
public class SourceFilesWithConfiguration {
229+
public class SourceFilesWithConfiguration
230+
{
230231
public IEnumerable<SourceFile> Files
231232
{
232233
get { return _files.Values; }
@@ -244,14 +245,14 @@ public EnvDTE.Configuration Configuration
244245
}
245246

246247
public int Count()
247-
{
248+
{
248249
return _files.Count;
249-
}
250+
}
250251

251252
public bool Exists(string filePath)
252-
{
253+
{
253254
return _files.ContainsKey(filePath);
254-
}
255+
}
255256

256257
public void addOrUpdateFile(SourceFile file)
257258
{

0 commit comments

Comments
 (0)