Skip to content

Commit

Permalink
main: Run clang-format + remove de* types
Browse files Browse the repository at this point in the history
See https://github.com/KhronosGroup/VK-GL-CTS/wiki/Contributing#coding-conventions for rebase, merge and blame instructions

VK-GL-CTS issue: 4652

Affects: *

Components: Framework, OpenGL, Vulkan
Change-Id: I8aa40e7ded676df8c77dce38b77a8df569e8d375
  • Loading branch information
ShabbyX authored and lordalcol committed May 17, 2024
1 parent fd5cc7b commit 1a09796
Show file tree
Hide file tree
Showing 3,922 changed files with 2,128,505 additions and 2,057,008 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
49 changes: 35 additions & 14 deletions external/openglcts/.clang-format → .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,24 @@ BasedOnStyle: LLVM
# The extra indent or outdent of access modifiers, e.g. public:.
AccessModifierOffset: -4

# If true, aligns escaped newlines as far left as possible. Otherwise puts them into the right-most column.
AlignEscapedNewlinesLeft: true
# Aligns escaped newlines as far left as possible
AlignEscapedNewlines: Left

# This will align the assignment operators of consecutive lines.
AlignConsecutiveAssignments: true
AlignConsecutiveAssignments: Consecutive

# This will align the declaration names of consecutive lines.
AlignConsecutiveDeclarations: true
# Do not align the declaration names.
AlignConsecutiveDeclarations: None

# Align the bitfield in declarations
AlignConsecutiveBitFields: Consecutive

# If true, aligns trailing comments.
AlignTrailingComments: true

# Align operands when the expression is broken in multiple lines.
AlignOperands: Align

# Allow putting all parameters of a function declaration onto the next line even if BinPackParameters is false.
AllowAllParametersOfDeclarationOnNextLine: false

Expand All @@ -35,13 +41,14 @@ AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false

# If true, always break after function definition return types.
AlwaysBreakAfterDefinitionReturnType: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None

# If true, always break before multiline string literals.
AlwaysBreakBeforeMultilineStrings: false

# If true, always break after the template<...> of a template declaration.
AlwaysBreakTemplateDeclarations: true
AlwaysBreakTemplateDeclarations: Yes

# If false, a function call's arguments will either be all on the same line or will have one line each.
BinPackArguments: true
Expand All @@ -60,7 +67,7 @@ BreakBeforeBraces: Allman
BreakBeforeTernaryOperators: false

# Always break constructor initializers before commas and align the commas with the colon.
BreakConstructorInitializersBeforeComma: true
BreakConstructorInitializers: BeforeComma

# The column limit. A column limit of 0 means that there is no column limit.
ColumnLimit: 120
Expand All @@ -69,7 +76,7 @@ ColumnLimit: 120
CommentPragmas: '^ *'

# If the constructor initializers don't fit on a line, put each initializer on its own line.
ConstructorInitializerAllOnOneLineOrOnePerLine: true
PackConstructorInitializers: CurrentLine

# The number of characters to use for indentation of constructor initializer lists.
ConstructorInitializerIndentWidth: 4
Expand All @@ -78,7 +85,7 @@ ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4

# If true, format braced lists as best suited for C++11 braced lists.
Cpp11BracedListStyle: false
Cpp11BracedListStyle: true

# Disables formatting at all.
DisableFormat: false
Expand Down Expand Up @@ -125,7 +132,10 @@ PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 1000000000

# Pointer and reference alignment style. Possible values: Left, Right, Middle.
PointerAlignment: Left
PointerAlignment: Right

# Do not sort includes, many generated headers don't appropriately include what they rely on.
SortIncludes: Never

# If true, a space may be inserted after C style casts.
SpaceAfterCStyleCast: false
Expand Down Expand Up @@ -154,15 +164,26 @@ SpacesInContainerLiterals: false
# If true, spaces will be inserted after '(' and before ')'.
SpacesInParentheses: false

# If true, spaces will be inserted after '[' and befor']'.
# If true, spaces will be inserted after '[' and before ']'.
SpacesInSquareBrackets: false

# Format compatible with this standard, e.g. use A<A<int> > instead of A<A<int>> for LS_Cpp03. Possible values: Cpp03, Cpp11, Auto.
Standard: Cpp03
Standard: Cpp11

# The number of columns used for tab stops.
TabWidth: 4

# The way to use tab characters in the resulting file. Possible values: Never, ForIndentation, Always.
UseTab: Always
UseTab: Never

# Support formatting other languages too, mostly using default configs
---
Language: Java
IndentWidth: 4
---
Language: Json
IndentWidth: 4
---
Language: ObjC
IndentWidth: 4
BreakBeforeBraces: Allman
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ public class BatchRunConfiguration {
private final String mSurfaceType;
private final boolean mRequired;

public BatchRunConfiguration(String glConfig, String rotation, String surfaceType,
boolean required) {
public BatchRunConfiguration(String glConfig, String rotation,
String surfaceType, boolean required) {
mGlConfig = glConfig;
mRotation = rotation;
mSurfaceType = surfaceType;
Expand All @@ -42,37 +42,30 @@ public BatchRunConfiguration(String glConfig, String rotation, String surfaceTyp
* Get string that uniquely identifies this config
*/
public String getId() {
return String.format("{glformat=%s,rotation=%s,surfacetype=%s,required=%b}",
mGlConfig, mRotation, mSurfaceType, mRequired);
return String.format(
"{glformat=%s,rotation=%s,surfacetype=%s,required=%b}", mGlConfig,
mRotation, mSurfaceType, mRequired);
}

/**
* Get the GL config used in this configuration.
*/
public String getGlConfig() {
return mGlConfig;
}
public String getGlConfig() { return mGlConfig; }

/**
* Get the screen rotation used in this configuration.
*/
public String getRotation() {
return mRotation;
}
public String getRotation() { return mRotation; }

/**
* Get the surface type used in this configuration.
*/
public String getSurfaceType() {
return mSurfaceType;
}
public String getSurfaceType() { return mSurfaceType; }

/**
* Is this configuration mandatory to support, if target API is supported?
*/
public boolean isRequired() {
return mRequired;
}
public boolean isRequired() { return mRequired; }

@Override
public boolean equals(Object other) {
Expand Down
Loading

0 comments on commit 1a09796

Please sign in to comment.