Skip to content

Commit

Permalink
chore: replace tabs with spaces
Browse files Browse the repository at this point in the history
Signed-off-by: Sarapulov Vasilii <sarapulov.vas@mail.ru>
  • Loading branch information
Sarapulov-Vas committed Dec 21, 2024
1 parent 6f97deb commit 0fccec5
Showing 1 changed file with 15 additions and 19 deletions.
34 changes: 15 additions & 19 deletions Ghidra/Features/Base/src/main/javacc/ghidra/app/util/cparser/C/C.jj
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public class CParser {
private Stack<DataType> dataTypeStack = new Stack<DataType>();

private StringBuilder parseMessages = new StringBuilder();

// true if parse was successful
private boolean parseSuccess = false;

Expand All @@ -159,15 +159,14 @@ public class CParser {
}

public void setFilenames(String[] files) {
if (files == null || files.length < 1) {
return;
}
if (files == null || files.length < 1) {
return;
}

for (String file : files)
{
filenames.add(file);
}
}
for (String file : files) {
filenames.add(file);
}
}

private CategoryPath getCurrentCategoryPath() {
return getCategory(currentCategoryName);
Expand All @@ -188,16 +187,13 @@ public class CParser {
}

private String getFileName(String path) {
if (includePaths != null)
{
for (String includePath : includePaths)
{
if (path.startsWith(includePath))
{
return path.substring(includePath.length() + 1);
}
}
}
if (includePaths != null) {
for (String includePath : includePaths) {
if (path.startsWith(includePath)) {
return path.substring(includePath.length() + 1);
}
}
}

int slashpos = path.lastIndexOf('/');
if (slashpos < 0) {
Expand Down

0 comments on commit 0fccec5

Please sign in to comment.