[clang-tools-extra] r326547 - [clangd:vscode] check empty/null string correctly.
Eric Liu via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 2 01:21:41 PST 2018
Author: ioeric
Date: Fri Mar 2 01:21:41 2018
New Revision: 326547
URL: http://llvm.org/viewvc/llvm-project?rev=326547&view=rev
Log:
[clangd:vscode] check empty/null string correctly.
Modified:
clang-tools-extra/trunk/clangd/clients/clangd-vscode/src/extension.ts
Modified: clang-tools-extra/trunk/clangd/clients/clangd-vscode/src/extension.ts
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/clients/clangd-vscode/src/extension.ts?rev=326547&r1=326546&r2=326547&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/clients/clangd-vscode/src/extension.ts (original)
+++ clang-tools-extra/trunk/clangd/clients/clangd-vscode/src/extension.ts Fri Mar 2 01:21:41 2018
@@ -23,7 +23,7 @@ export function activate(context: vscode
args: getConfig<string[]>('arguments')
};
const traceFile = getConfig<string>('trace');
- if (traceFile != '') {
+ if (!!traceFile) {
const trace = {CLANGD_TRACE : traceFile};
clangd.options = {env : {...process.env, ...trace}};
}
More information about the cfe-commits
mailing list