Skip to content

Commit 0b94fde

Browse files
Gordon01Alexander Sergeev
and
Alexander Sergeev
authored
Remove trailing whitespaces (#8254)
Co-authored-by: Alexander Sergeev <[email protected]>
1 parent e68b898 commit 0b94fde

File tree

17 files changed

+48
-48
lines changed

17 files changed

+48
-48
lines changed

.github/actions/StaleCloser/StaleCloser.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/actions/StaleCloser/StaleCloser.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export class StaleCloser extends ActionBase {
9797
}
9898
console.log(`Closing issue ${hydrated.number}.`)
9999
} else {
100-
// Ping
100+
// Ping
101101
if (hydrated.updatedAt < pingTimestamp && hydrated.assignee) {
102102
console.log(
103103
`Last comment on issue ${hydrated.number} by ${lastComment.author.name}. Pinging @${hydrated.assignee}`,

Build/lldb-mi/lldb-mi.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ jobs:
1717
steps:
1818
- task: CmdLine@2
1919
displayName: 'Install Dependencies'
20-
inputs:
20+
inputs:
2121
script: brew install cmake ninja swig
2222
continueOnError: true
2323

2424
- task: CmdLine@2
2525
displayName: 'Build LLVM Project'
26-
inputs:
26+
inputs:
2727
script: |
2828
log_and_exec_cmd() {
2929
echo "##[command] $1"
@@ -32,7 +32,7 @@ jobs:
3232
3333
log_and_exec_cmd "cd $(Build.StagingDirectory)"
3434
log_and_exec_cmd "mkdir $(Build.StagingDirectory)/buildspace"
35-
35+
3636
log_and_exec_cmd "git clone $(llvm_repo) llvm-project"
3737
log_and_exec_cmd "cd llvm-project"
3838
log_and_exec_cmd "git checkout $(llvm_branch)"

Code Samples/BoxConsoleSample/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ This option will generate a tasks.json file for you, build your active source fi
2121

2222
### F5
2323
Another way to begin building and debugging your active file is to execute the command by pressing <kbd>F5</kbd>. This method will configure
24-
both a tasks.json and launch.json file for you, build your active source file, and then launch the debugger.
24+
both a tasks.json and launch.json file for you, build your active source file, and then launch the debugger.

Code Samples/Fib/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Fib
22

3-
This code sample is to show debugging. Update `launch.json` and `tasks.json` in the `.vscode` folder to use your setup to build and debug.
3+
This code sample is to show debugging. Update `launch.json` and `tasks.json` in the `.vscode` folder to use your setup to build and debug.

Code Samples/Fib/thread.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -15,34 +15,34 @@ static int fib(int n){
1515
switch (n) {
1616
case 0: return 1;
1717
case 1: return 1;
18-
default: return (fib(n-2) + fib(n-1));
19-
}
18+
default: return (fib(n-2) + fib(n-1));
19+
}
2020
}
2121

2222
void * thread_proc(void* ctx)
2323
{
2424
int tid = g_tid++;
25-
25+
2626
char thread_name[16];
2727
sprintf(thread_name, "Thread %d", tid);
2828
#ifdef __APPLE__
2929
pthread_setname_np(thread_name);
3030
#else
3131
pthread_setname_np(pthread_self(), thread_name);
3232
#endif
33-
33+
3434
// Random delay, 0 - 0.5 sec
3535
timespec ts;
3636
ts.tv_sec = 0;
3737
ts.tv_nsec = 500000000 + ((float)rand() / (float)RAND_MAX) * 500000000;
3838
nanosleep(&ts, NULL);
39-
39+
4040
volatile int i = 0;
4141
while (i <= 30) {
4242
std::cout << "Thread " << tid << ": fib(" << i << ") = " << fib(i) << std::endl;
4343
i++;
4444
nanosleep(&ts, NULL);
4545
}
46-
46+
4747
std::cout << thread_name << " exited!" << std::endl;
4848
}

Documentation/Debugger/natvis/natvis.xsd

+16-16
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@
240240
</xs:annotation>
241241
</xs:attribute>
242242
</xs:complexType>
243-
243+
244244
<!-- Attributes for elements that support filtering by view-->
245245
<xs:attributeGroup name="ViewConstraints">
246246
<xs:attribute name="IncludeView" type ="ViewIncludeType" use="optional" />
@@ -335,9 +335,9 @@
335335
are evaluated in the context of the node.
336336
</xs:documentation>
337337
</xs:annotation>
338-
</xs:attribute>
338+
</xs:attribute>
339339
</xs:attributeGroup>
340-
340+
341341
<xs:complexType name="ListItemsNodeType">
342342
<xs:annotation>
343343
<xs:documentation>Expression that points to value of the linked list node. It can be left empty or have 'this' to refer to the linked list node itself. This expression is evaluated under the context of the linked list node and not the parent linked list type.</xs:documentation>
@@ -402,7 +402,7 @@
402402
<xs:documentation>
403403
Indicates that the item should use the icon associated with general data.
404404
</xs:documentation>
405-
</xs:annotation>
405+
</xs:annotation>
406406
</xs:enumeration>
407407
<xs:enumeration value="Method">
408408
<xs:annotation>
@@ -864,16 +864,16 @@
864864
<xs:complexType name="MostDerivedObjectType">
865865
<xs:annotation>
866866
<xs:documentation>
867-
Specifies an expression which evaluates to the current object, casted to its most-derived type.
868-
869-
In most cases, the debugger is able to automatically determine an object's most-derived type, in which case use of the &lt;MostDerivedType&gt;
867+
Specifies an expression which evaluates to the current object, casted to its most-derived type.
868+
869+
In most cases, the debugger is able to automatically determine an object's most-derived type, in which case use of the &lt;MostDerivedType&gt;
870870
element is unecessary. Automatic determination of an object's most-derived type requires the object to be an instance of a C++ class, with a
871871
compiler-generated virtual function table. This is sufficient for most class-hierarchies; however, custom logic may occasionally be necessary
872-
when dealing with a class hierarchy that does not contain virtual functions, or when the virtual function table is manually constructed by the
872+
when dealing with a class hierarchy that does not contain virtual functions, or when the virtual function table is manually constructed by the
873873
application code.
874874
</xs:documentation>
875875
</xs:annotation>
876-
876+
877877
<xs:simpleContent>
878878
<xs:extension base="StringType">
879879
<xs:attributeGroup ref="CommonAttributes" />
@@ -935,12 +935,12 @@
935935
<xs:annotation>
936936
<xs:documentation>
937937
Indicates that the given type is a smart pointer. The text inside this element specifies the expression to evaluate the underlying pointer.
938-
938+
939939
The &lt;SmartPointer&gt; element has the following effects:
940940
- If no alternative &lt;DisplayString&gt; element is provided (or all &lt;DisplayString&gt; elements have failed conditions), the underlying pointer will be the display string
941941
- If no alternative &lt;StringView&gt; element is provided (or all &lt;StringView&gt; elements have failed conditions), the underlying pointer will be the string view, if it has one.
942942
- If no alternative &lt;Expand&gt; element is provided, the expansion of the smart pointer will be the expansion of the underlying pointer.
943-
- The smart pointer class will also support overloaded operators as determined by the &lt;Usage&gt; attribute. You can opt out of this behavior by specifying
943+
- The smart pointer class will also support overloaded operators as determined by the &lt;Usage&gt; attribute. You can opt out of this behavior by specifying
944944
'DefaultExpansion=&quot;false&quot;'
945945
</xs:documentation>
946946
</xs:annotation>
@@ -949,7 +949,7 @@
949949
<xs:attributeGroup ref="CommonAttributes_NoCondition" />
950950
<xs:attribute name="Usage" type="SmartPointerUsage" use="required">
951951
<xs:annotation>
952-
<xs:documentation>Indicates which combinations of operators this smart pointer object supports.
952+
<xs:documentation>Indicates which combinations of operators this smart pointer object supports.
953953
</xs:documentation>
954954
</xs:annotation>
955955
</xs:attribute>
@@ -1004,10 +1004,10 @@
10041004
<xs:documentation>Specifies an optional priority to assign to this entry for type matching. Higher priority entries within a particular file or directory
10051005
are checked first. &lt;Type&gt; entries that do not specify a priority receive default priority of &quot;Medium&quot; &lt;AlternativeType&gt; entries which do not specify a priority
10061006
will inherit the priority of the enclosing &lt;Type&gt; element. The priority is only used to disambiguate type matching when all other means of disambiguation are unavailable.
1007-
For example, entries with more specific template instantiations, module constraints, or view constraints will take priority regardless of any priority values specified.
1008-
Similarly, regardless of priority, natvis files that are part of a loaded project will always take precedence over files in the user natvis directory,
1009-
which will, in turn, take precedence over files in the system-wide natvis directory.
1010-
1007+
For example, entries with more specific template instantiations, module constraints, or view constraints will take priority regardless of any priority values specified.
1008+
Similarly, regardless of priority, natvis files that are part of a loaded project will always take precedence over files in the user natvis directory,
1009+
which will, in turn, take precedence over files in the system-wide natvis directory.
1010+
10111011
If two entries have the same priority and cannot otherwise be disambiguated, it is unspecified which one will get used.
10121012
</xs:documentation>
10131013
</xs:annotation>

Extension/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ C/C++ extension tutorials per compiler and platform
1717
* [Clang on macOS](https://code.visualstudio.com/docs/cpp/config-clang-mac)
1818

1919
## Quick links
20-
* [Editing features (IntelliSense)](https://code.visualstudio.com/docs/cpp/cpp-ide)
20+
* [Editing features (IntelliSense)](https://code.visualstudio.com/docs/cpp/cpp-ide)
2121
* [IntelliSense configuration](https://code.visualstudio.com/docs/cpp/customize-default-settings-cpp)
2222
* [Enhanced colorization](https://code.visualstudio.com/docs/cpp/colorization-cpp)
2323
* [Debugging](https://code.visualstudio.com/docs/cpp/cpp-debug)

Extension/test/unitTests/common.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@ suite("Common Utility validation", () => {
235235
"-DTEST6=TEST6\\ TEST6 Test6", // "-DTEST6=TEST6 TEST6 Test6"
236236
]
237237
*/
238-
testNormalizeArgsScenario("-DTEST1=TEST1 TEST1", "\"-DTEST1=TEST1 TEST1\"");
239-
testNormalizeArgsScenario("-DTEST2=\"TEST2 TEST2\"", "-DTEST2=\"TEST2 TEST2\"");
238+
testNormalizeArgsScenario("-DTEST1=TEST1 TEST1", "\"-DTEST1=TEST1 TEST1\"");
239+
testNormalizeArgsScenario("-DTEST2=\"TEST2 TEST2\"", "-DTEST2=\"TEST2 TEST2\"");
240240
testNormalizeArgsScenario("-DTEST3=\\\"TEST3 TEST3\\\"", "\"-DTEST3=\\\"TEST3 TEST3\\\"\"");
241241
if (process.platform.includes("win")) {
242242
testNormalizeArgsScenario("-DTEST4=TEST4\\ TEST4", "\"-DTEST4=TEST4 TEST4\"");
@@ -245,7 +245,7 @@ suite("Common Utility validation", () => {
245245
testNormalizeArgsScenario("-DTEST4=TEST4\\ TEST4", "-DTEST4=TEST4\\ TEST4");
246246
testNormalizeArgsScenario("-DTEST5='TEST5 TEST5'", "-DTEST5='TEST5 TEST5'");
247247
}
248-
testNormalizeArgsScenario("-DTEST6=TEST6\\ TEST6 Test6", "\"-DTEST6=TEST6 TEST6 Test6\"");
248+
testNormalizeArgsScenario("-DTEST6=TEST6\\ TEST6 Test6", "\"-DTEST6=TEST6 TEST6 Test6\"");
249249
});
250250

251251
interface ResolveTestFlowEnvironment {

Extension/tools/OptionsSchema.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,9 @@
279279
},
280280
"default": []
281281
},
282-
"envFile": {
283-
"type": "string",
284-
"description": "%c_cpp.debuggers.envFile.description%",
282+
"envFile": {
283+
"type": "string",
284+
"description": "%c_cpp.debuggers.envFile.description%",
285285
"default": "${workspaceFolder}/.env"
286286
},
287287
"additionalSOLibSearchPath": {
@@ -551,9 +551,9 @@
551551
},
552552
"default": []
553553
},
554-
"envFile": {
555-
"type": "string",
556-
"description": "%c_cpp.debuggers.envFile.description%",
554+
"envFile": {
555+
"type": "string",
556+
"description": "%c_cpp.debuggers.envFile.description%",
557557
"default": "${workspaceFolder}/.env"
558558
},
559559
"symbolSearchPath": {

Extension/tools/VSSymbolSettings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-04/schema#",
3-
3+
44
"definitions": {
55
"VSSymbolOptions": {
66
"type": "object",

Extension/translations_auto_pr.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function hasAnyChanges() {
6464
anyChanges = true;
6565
}
6666
});
67-
67+
6868
return anyChanges;
6969
}
7070

Extension/tscCompileList.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# If you do not want it to be webpacked:
77
# 1. Please make sure it is not in the src directory
88
# 2. Add it to the list below
9-
# 3. If you created a new folder, please make sure it is added to the .vscodeignore
9+
# 3. If you created a new folder, please make sure it is added to the .vscodeignore
1010

1111
tools/GenerateOptionsSchema.ts
1212
ui/settings.ts

Extension/ui/settings.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@
421421

422422
<div style="height: 30px; display: block"></div>
423423

424-
<span data-loc-id="switch.to.json">Switch to the <a href="command:C_Cpp.ConfigurationEditJSON" title="Edit configurations in JSON file" data-loc-id-title="edit.configurations.in.json">c_cpp_properties.json</a> file by clicking on the file link or using the command:</span><br>
424+
<span data-loc-id="switch.to.json">Switch to the <a href="command:C_Cpp.ConfigurationEditJSON" title="Edit configurations in JSON file" data-loc-id-title="edit.configurations.in.json">c_cpp_properties.json</a> file by clicking on the file link or using the command:</span><br>
425425
<code data-loc-id="edit.configurations.json">C/C++: Edit configurations (JSON)</code>
426426

427427
<div style="height: 30px; display: block"></div>
@@ -466,7 +466,7 @@
466466
<button id=addConfigBtn data-loc-id="add.configuration.button">Add Configuration</button>
467467
</div>
468468
<div id=addConfigInputDiv style="display: none; width: 400px;">
469-
<input id=addConfigName type=text style="width: 200px; margin-right: 6px" placeholder="Configuration name..." data-loc-id-placeholder="configuration.name.input"/>
469+
<input id=addConfigName type=text style="width: 200px; margin-right: 6px" placeholder="Configuration name..." data-loc-id-placeholder="configuration.name.input"/>
470470
<button id=addConfigOk style="margin-right: 6px" data-loc-id="ok.button">OK</button>
471471
<button id=addConfigCancel data-loc-id="cancel.button">CANCEL</button>
472472
</div>
@@ -611,7 +611,7 @@
611611
<option value="gnu++03">gnu++03</option>
612612
<option value="gnu++98">gnu++98</option>
613613
</select>
614-
</div>
614+
</div>
615615
</div>
616616

617617
<hr>

Extension/webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ module.exports = (env) => {
6565
}
6666
})
6767
}
68-
68+
6969
return config
7070
};
7171

ExtensionPack/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"codespace",
3232
"liveshare"
3333
],
34-
"extensionPack": [
34+
"extensionPack": [
3535
"ms-vscode.cpptools",
3636
"ms-vscode.cpptools-themes",
3737
"twxs.cmake",

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ C/C++ extension tutorials per compiler and platform
1717
* [Clang on macOS](https://code.visualstudio.com/docs/cpp/config-clang-mac)
1818

1919
## Quick links
20-
* [Editing features (IntelliSense)](https://code.visualstudio.com/docs/cpp/cpp-ide)
20+
* [Editing features (IntelliSense)](https://code.visualstudio.com/docs/cpp/cpp-ide)
2121
* [IntelliSense configuration](https://code.visualstudio.com/docs/cpp/customize-default-settings-cpp)
2222
* [Enhanced colorization](https://code.visualstudio.com/docs/cpp/colorization-cpp)
2323
* [Debugging](https://code.visualstudio.com/docs/cpp/cpp-debug)

0 commit comments

Comments
 (0)