Remove trailing whitespaces (#8254)

Co-authored-by: Alexander Sergeev <[email protected]>
This commit is contained in:
Alexander
2021-10-14 10:47:28 -07:00
committed by GitHub
co-authored by Alexander Sergeev
parent e68b898a14
commit 0b94fdefe9
17 changed files with 48 additions and 48 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ class StaleCloser extends ActionBase_1.ActionBase {
console.log(`Closing issue ${hydrated.number}.`); console.log(`Closing issue ${hydrated.number}.`);
} }
else { else {
// Ping // Ping
if (hydrated.updatedAt < pingTimestamp && hydrated.assignee) { if (hydrated.updatedAt < pingTimestamp && hydrated.assignee) {
console.log(`Last comment on issue ${hydrated.number} by ${lastComment.author.name}. Pinging @${hydrated.assignee}`); console.log(`Last comment on issue ${hydrated.number} by ${lastComment.author.name}. Pinging @${hydrated.assignee}`);
if (this.pingComment) { if (this.pingComment) {
+1 -1
View File
@@ -97,7 +97,7 @@ export class StaleCloser extends ActionBase {
} }
console.log(`Closing issue ${hydrated.number}.`) console.log(`Closing issue ${hydrated.number}.`)
} else { } else {
// Ping // Ping
if (hydrated.updatedAt < pingTimestamp && hydrated.assignee) { if (hydrated.updatedAt < pingTimestamp && hydrated.assignee) {
console.log( console.log(
`Last comment on issue ${hydrated.number} by ${lastComment.author.name}. Pinging @${hydrated.assignee}`, `Last comment on issue ${hydrated.number} by ${lastComment.author.name}. Pinging @${hydrated.assignee}`,
+3 -3
View File
@@ -17,13 +17,13 @@ jobs:
steps: steps:
- task: CmdLine@2 - task: CmdLine@2
displayName: 'Install Dependencies' displayName: 'Install Dependencies'
inputs: inputs:
script: brew install cmake ninja swig script: brew install cmake ninja swig
continueOnError: true continueOnError: true
- task: CmdLine@2 - task: CmdLine@2
displayName: 'Build LLVM Project' displayName: 'Build LLVM Project'
inputs: inputs:
script: | script: |
log_and_exec_cmd() { log_and_exec_cmd() {
echo "##[command] $1" echo "##[command] $1"
@@ -32,7 +32,7 @@ jobs:
log_and_exec_cmd "cd $(Build.StagingDirectory)" log_and_exec_cmd "cd $(Build.StagingDirectory)"
log_and_exec_cmd "mkdir $(Build.StagingDirectory)/buildspace" log_and_exec_cmd "mkdir $(Build.StagingDirectory)/buildspace"
log_and_exec_cmd "git clone $(llvm_repo) llvm-project" log_and_exec_cmd "git clone $(llvm_repo) llvm-project"
log_and_exec_cmd "cd llvm-project" log_and_exec_cmd "cd llvm-project"
log_and_exec_cmd "git checkout $(llvm_branch)" log_and_exec_cmd "git checkout $(llvm_branch)"
+1 -1
View File
@@ -21,4 +21,4 @@ This option will generate a tasks.json file for you, build your active source fi
### F5 ### F5
Another way to begin building and debugging your active file is to execute the command by pressing <kbd>F5</kbd>. This method will configure Another way to begin building and debugging your active file is to execute the command by pressing <kbd>F5</kbd>. This method will configure
both a tasks.json and launch.json file for you, build your active source file, and then launch the debugger. both a tasks.json and launch.json file for you, build your active source file, and then launch the debugger.
+1 -1
View File
@@ -1,3 +1,3 @@
# Fib # Fib
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. 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.
+6 -6
View File
@@ -15,14 +15,14 @@ static int fib(int n){
switch (n) { switch (n) {
case 0: return 1; case 0: return 1;
case 1: return 1; case 1: return 1;
default: return (fib(n-2) + fib(n-1)); default: return (fib(n-2) + fib(n-1));
} }
} }
void * thread_proc(void* ctx) void * thread_proc(void* ctx)
{ {
int tid = g_tid++; int tid = g_tid++;
char thread_name[16]; char thread_name[16];
sprintf(thread_name, "Thread %d", tid); sprintf(thread_name, "Thread %d", tid);
#ifdef __APPLE__ #ifdef __APPLE__
@@ -30,19 +30,19 @@ void * thread_proc(void* ctx)
#else #else
pthread_setname_np(pthread_self(), thread_name); pthread_setname_np(pthread_self(), thread_name);
#endif #endif
// Random delay, 0 - 0.5 sec // Random delay, 0 - 0.5 sec
timespec ts; timespec ts;
ts.tv_sec = 0; ts.tv_sec = 0;
ts.tv_nsec = 500000000 + ((float)rand() / (float)RAND_MAX) * 500000000; ts.tv_nsec = 500000000 + ((float)rand() / (float)RAND_MAX) * 500000000;
nanosleep(&ts, NULL); nanosleep(&ts, NULL);
volatile int i = 0; volatile int i = 0;
while (i <= 30) { while (i <= 30) {
std::cout << "Thread " << tid << ": fib(" << i << ") = " << fib(i) << std::endl; std::cout << "Thread " << tid << ": fib(" << i << ") = " << fib(i) << std::endl;
i++; i++;
nanosleep(&ts, NULL); nanosleep(&ts, NULL);
} }
std::cout << thread_name << " exited!" << std::endl; std::cout << thread_name << " exited!" << std::endl;
} }
+16 -16
View File
@@ -240,7 +240,7 @@
</xs:annotation> </xs:annotation>
</xs:attribute> </xs:attribute>
</xs:complexType> </xs:complexType>
<!-- Attributes for elements that support filtering by view--> <!-- Attributes for elements that support filtering by view-->
<xs:attributeGroup name="ViewConstraints"> <xs:attributeGroup name="ViewConstraints">
<xs:attribute name="IncludeView" type ="ViewIncludeType" use="optional" /> <xs:attribute name="IncludeView" type ="ViewIncludeType" use="optional" />
@@ -335,9 +335,9 @@
are evaluated in the context of the node. are evaluated in the context of the node.
</xs:documentation> </xs:documentation>
</xs:annotation> </xs:annotation>
</xs:attribute> </xs:attribute>
</xs:attributeGroup> </xs:attributeGroup>
<xs:complexType name="ListItemsNodeType"> <xs:complexType name="ListItemsNodeType">
<xs:annotation> <xs:annotation>
<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> <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 @@
<xs:documentation> <xs:documentation>
Indicates that the item should use the icon associated with general data. Indicates that the item should use the icon associated with general data.
</xs:documentation> </xs:documentation>
</xs:annotation> </xs:annotation>
</xs:enumeration> </xs:enumeration>
<xs:enumeration value="Method"> <xs:enumeration value="Method">
<xs:annotation> <xs:annotation>
@@ -864,16 +864,16 @@
<xs:complexType name="MostDerivedObjectType"> <xs:complexType name="MostDerivedObjectType">
<xs:annotation> <xs:annotation>
<xs:documentation> <xs:documentation>
Specifies an expression which evaluates to the current object, casted to its most-derived type. Specifies an expression which evaluates to the current object, casted to its most-derived type.
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; 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;
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 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
compiler-generated virtual function table. This is sufficient for most class-hierarchies; however, custom logic may occasionally be necessary compiler-generated virtual function table. This is sufficient for most class-hierarchies; however, custom logic may occasionally be necessary
when dealing with a class hierarchy that does not contain virtual functions, or when the virtual function table is manually constructed by the when dealing with a class hierarchy that does not contain virtual functions, or when the virtual function table is manually constructed by the
application code. application code.
</xs:documentation> </xs:documentation>
</xs:annotation> </xs:annotation>
<xs:simpleContent> <xs:simpleContent>
<xs:extension base="StringType"> <xs:extension base="StringType">
<xs:attributeGroup ref="CommonAttributes" /> <xs:attributeGroup ref="CommonAttributes" />
@@ -935,12 +935,12 @@
<xs:annotation> <xs:annotation>
<xs:documentation> <xs:documentation>
Indicates that the given type is a smart pointer. The text inside this element specifies the expression to evaluate the underlying pointer. Indicates that the given type is a smart pointer. The text inside this element specifies the expression to evaluate the underlying pointer.
The &lt;SmartPointer&gt; element has the following effects: The &lt;SmartPointer&gt; element has the following effects:
- 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 - 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
- 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. - 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.
- If no alternative &lt;Expand&gt; element is provided, the expansion of the smart pointer will be the expansion of the underlying pointer. - If no alternative &lt;Expand&gt; element is provided, the expansion of the smart pointer will be the expansion of the underlying pointer.
- 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 - 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
'DefaultExpansion=&quot;false&quot;' 'DefaultExpansion=&quot;false&quot;'
</xs:documentation> </xs:documentation>
</xs:annotation> </xs:annotation>
@@ -949,7 +949,7 @@
<xs:attributeGroup ref="CommonAttributes_NoCondition" /> <xs:attributeGroup ref="CommonAttributes_NoCondition" />
<xs:attribute name="Usage" type="SmartPointerUsage" use="required"> <xs:attribute name="Usage" type="SmartPointerUsage" use="required">
<xs:annotation> <xs:annotation>
<xs:documentation>Indicates which combinations of operators this smart pointer object supports. <xs:documentation>Indicates which combinations of operators this smart pointer object supports.
</xs:documentation> </xs:documentation>
</xs:annotation> </xs:annotation>
</xs:attribute> </xs:attribute>
@@ -1004,10 +1004,10 @@
<xs:documentation>Specifies an optional priority to assign to this entry for type matching. Higher priority entries within a particular file or directory <xs:documentation>Specifies an optional priority to assign to this entry for type matching. Higher priority entries within a particular file or directory
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 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
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. 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.
For example, entries with more specific template instantiations, module constraints, or view constraints will take priority regardless of any priority values specified. For example, entries with more specific template instantiations, module constraints, or view constraints will take priority regardless of any priority values specified.
Similarly, regardless of priority, natvis files that are part of a loaded project will always take precedence over files in the user natvis directory, Similarly, regardless of priority, natvis files that are part of a loaded project will always take precedence over files in the user natvis directory,
which will, in turn, take precedence over files in the system-wide natvis directory. which will, in turn, take precedence over files in the system-wide natvis directory.
If two entries have the same priority and cannot otherwise be disambiguated, it is unspecified which one will get used. If two entries have the same priority and cannot otherwise be disambiguated, it is unspecified which one will get used.
</xs:documentation> </xs:documentation>
</xs:annotation> </xs:annotation>
+1 -1
View File
@@ -17,7 +17,7 @@ C/C++ extension tutorials per compiler and platform
* [Clang on macOS](https://code.visualstudio.com/docs/cpp/config-clang-mac) * [Clang on macOS](https://code.visualstudio.com/docs/cpp/config-clang-mac)
## Quick links ## Quick links
* [Editing features (IntelliSense)](https://code.visualstudio.com/docs/cpp/cpp-ide) * [Editing features (IntelliSense)](https://code.visualstudio.com/docs/cpp/cpp-ide)
* [IntelliSense configuration](https://code.visualstudio.com/docs/cpp/customize-default-settings-cpp) * [IntelliSense configuration](https://code.visualstudio.com/docs/cpp/customize-default-settings-cpp)
* [Enhanced colorization](https://code.visualstudio.com/docs/cpp/colorization-cpp) * [Enhanced colorization](https://code.visualstudio.com/docs/cpp/colorization-cpp)
* [Debugging](https://code.visualstudio.com/docs/cpp/cpp-debug) * [Debugging](https://code.visualstudio.com/docs/cpp/cpp-debug)
+3 -3
View File
@@ -235,8 +235,8 @@ suite("Common Utility validation", () => {
"-DTEST6=TEST6\\ TEST6 Test6", // "-DTEST6=TEST6 TEST6 Test6" "-DTEST6=TEST6\\ TEST6 Test6", // "-DTEST6=TEST6 TEST6 Test6"
] ]
*/ */
testNormalizeArgsScenario("-DTEST1=TEST1 TEST1", "\"-DTEST1=TEST1 TEST1\""); testNormalizeArgsScenario("-DTEST1=TEST1 TEST1", "\"-DTEST1=TEST1 TEST1\"");
testNormalizeArgsScenario("-DTEST2=\"TEST2 TEST2\"", "-DTEST2=\"TEST2 TEST2\""); testNormalizeArgsScenario("-DTEST2=\"TEST2 TEST2\"", "-DTEST2=\"TEST2 TEST2\"");
testNormalizeArgsScenario("-DTEST3=\\\"TEST3 TEST3\\\"", "\"-DTEST3=\\\"TEST3 TEST3\\\"\""); testNormalizeArgsScenario("-DTEST3=\\\"TEST3 TEST3\\\"", "\"-DTEST3=\\\"TEST3 TEST3\\\"\"");
if (process.platform.includes("win")) { if (process.platform.includes("win")) {
testNormalizeArgsScenario("-DTEST4=TEST4\\ TEST4", "\"-DTEST4=TEST4 TEST4\""); testNormalizeArgsScenario("-DTEST4=TEST4\\ TEST4", "\"-DTEST4=TEST4 TEST4\"");
@@ -245,7 +245,7 @@ suite("Common Utility validation", () => {
testNormalizeArgsScenario("-DTEST4=TEST4\\ TEST4", "-DTEST4=TEST4\\ TEST4"); testNormalizeArgsScenario("-DTEST4=TEST4\\ TEST4", "-DTEST4=TEST4\\ TEST4");
testNormalizeArgsScenario("-DTEST5='TEST5 TEST5'", "-DTEST5='TEST5 TEST5'"); testNormalizeArgsScenario("-DTEST5='TEST5 TEST5'", "-DTEST5='TEST5 TEST5'");
} }
testNormalizeArgsScenario("-DTEST6=TEST6\\ TEST6 Test6", "\"-DTEST6=TEST6 TEST6 Test6\""); testNormalizeArgsScenario("-DTEST6=TEST6\\ TEST6 Test6", "\"-DTEST6=TEST6 TEST6 Test6\"");
}); });
interface ResolveTestFlowEnvironment { interface ResolveTestFlowEnvironment {
+6 -6
View File
@@ -279,9 +279,9 @@
}, },
"default": [] "default": []
}, },
"envFile": { "envFile": {
"type": "string", "type": "string",
"description": "%c_cpp.debuggers.envFile.description%", "description": "%c_cpp.debuggers.envFile.description%",
"default": "${workspaceFolder}/.env" "default": "${workspaceFolder}/.env"
}, },
"additionalSOLibSearchPath": { "additionalSOLibSearchPath": {
@@ -551,9 +551,9 @@
}, },
"default": [] "default": []
}, },
"envFile": { "envFile": {
"type": "string", "type": "string",
"description": "%c_cpp.debuggers.envFile.description%", "description": "%c_cpp.debuggers.envFile.description%",
"default": "${workspaceFolder}/.env" "default": "${workspaceFolder}/.env"
}, },
"symbolSearchPath": { "symbolSearchPath": {
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"$schema": "http://json-schema.org/draft-04/schema#", "$schema": "http://json-schema.org/draft-04/schema#",
"definitions": { "definitions": {
"VSSymbolOptions": { "VSSymbolOptions": {
"type": "object", "type": "object",
+1 -1
View File
@@ -64,7 +64,7 @@ function hasAnyChanges() {
anyChanges = true; anyChanges = true;
} }
}); });
return anyChanges; return anyChanges;
} }
+1 -1
View File
@@ -6,7 +6,7 @@
# If you do not want it to be webpacked: # If you do not want it to be webpacked:
# 1. Please make sure it is not in the src directory # 1. Please make sure it is not in the src directory
# 2. Add it to the list below # 2. Add it to the list below
# 3. If you created a new folder, please make sure it is added to the .vscodeignore # 3. If you created a new folder, please make sure it is added to the .vscodeignore
tools/GenerateOptionsSchema.ts tools/GenerateOptionsSchema.ts
ui/settings.ts ui/settings.ts
+3 -3
View File
@@ -421,7 +421,7 @@
<div style="height: 30px; display: block"></div> <div style="height: 30px; display: block"></div>
<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> <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>
<code data-loc-id="edit.configurations.json">C/C++: Edit configurations (JSON)</code> <code data-loc-id="edit.configurations.json">C/C++: Edit configurations (JSON)</code>
<div style="height: 30px; display: block"></div> <div style="height: 30px; display: block"></div>
@@ -466,7 +466,7 @@
<button id=addConfigBtn data-loc-id="add.configuration.button">Add Configuration</button> <button id=addConfigBtn data-loc-id="add.configuration.button">Add Configuration</button>
</div> </div>
<div id=addConfigInputDiv style="display: none; width: 400px;"> <div id=addConfigInputDiv style="display: none; width: 400px;">
<input id=addConfigName type=text style="width: 200px; margin-right: 6px" placeholder="Configuration name..." data-loc-id-placeholder="configuration.name.input"/> <input id=addConfigName type=text style="width: 200px; margin-right: 6px" placeholder="Configuration name..." data-loc-id-placeholder="configuration.name.input"/>
<button id=addConfigOk style="margin-right: 6px" data-loc-id="ok.button">OK</button> <button id=addConfigOk style="margin-right: 6px" data-loc-id="ok.button">OK</button>
<button id=addConfigCancel data-loc-id="cancel.button">CANCEL</button> <button id=addConfigCancel data-loc-id="cancel.button">CANCEL</button>
</div> </div>
@@ -611,7 +611,7 @@
<option value="gnu++03">gnu++03</option> <option value="gnu++03">gnu++03</option>
<option value="gnu++98">gnu++98</option> <option value="gnu++98">gnu++98</option>
</select> </select>
</div> </div>
</div> </div>
<hr> <hr>
+1 -1
View File
@@ -65,7 +65,7 @@ module.exports = (env) => {
} }
}) })
} }
return config return config
}; };
+1 -1
View File
@@ -31,7 +31,7 @@
"codespace", "codespace",
"liveshare" "liveshare"
], ],
"extensionPack": [ "extensionPack": [
"ms-vscode.cpptools", "ms-vscode.cpptools",
"ms-vscode.cpptools-themes", "ms-vscode.cpptools-themes",
"twxs.cmake", "twxs.cmake",
+1 -1
View File
@@ -17,7 +17,7 @@ C/C++ extension tutorials per compiler and platform
* [Clang on macOS](https://code.visualstudio.com/docs/cpp/config-clang-mac) * [Clang on macOS](https://code.visualstudio.com/docs/cpp/config-clang-mac)
## Quick links ## Quick links
* [Editing features (IntelliSense)](https://code.visualstudio.com/docs/cpp/cpp-ide) * [Editing features (IntelliSense)](https://code.visualstudio.com/docs/cpp/cpp-ide)
* [IntelliSense configuration](https://code.visualstudio.com/docs/cpp/customize-default-settings-cpp) * [IntelliSense configuration](https://code.visualstudio.com/docs/cpp/customize-default-settings-cpp)
* [Enhanced colorization](https://code.visualstudio.com/docs/cpp/colorization-cpp) * [Enhanced colorization](https://code.visualstudio.com/docs/cpp/colorization-cpp)
* [Debugging](https://code.visualstudio.com/docs/cpp/cpp-debug) * [Debugging](https://code.visualstudio.com/docs/cpp/cpp-debug)