llvm-project/clang-tools-extra/clangd
Jan Korous bd5ff79dd0 [clangd] Fix undefined behavior due to misaligned type cast
The current code was casting pointer to a misaligned type which is undefined behavior.
Found by compiling with Undefined Behavior Sanitizer and running tests (check-clang-tools).

llvm-svn: 327902
2018-03-19 20:26:18 +00:00
..
clients/clangd-vscode [clangd-vscode] Add package-lock.json to .gitignore 2018-03-09 14:06:43 +00:00
fuzzer [clangd-fuzzer] Update ClangdLSPServer constructor call. 2018-03-09 23:02:22 +00:00
global-symbol-builder [clangd] Collect the number of files referencing a symbol in the static index. 2018-03-12 14:49:09 +00:00
index [clangd] Fix undefined behavior due to misaligned type cast 2018-03-19 20:26:18 +00:00
tool [clangd] Extract ClangdServer::Options struct. 2018-03-05 17:28:54 +00:00
AST.cpp [clangd] Use identifier range as the definition range. 2018-03-09 14:00:34 +00:00
AST.h [clangd] Use identifier range as the definition range. 2018-03-09 14:00:34 +00:00
CMakeLists.txt [clangd] Revamp handling of diagnostics. 2018-03-12 15:28:22 +00:00
ClangdLSPServer.cpp Move DraftMgr from ClangdServer to ClangdLSPServer 2018-03-16 14:30:42 +00:00
ClangdLSPServer.h Move DraftMgr from ClangdServer to ClangdLSPServer 2018-03-16 14:30:42 +00:00
ClangdServer.cpp Move DraftMgr from ClangdServer to ClangdLSPServer 2018-03-16 14:30:42 +00:00
ClangdServer.h Move DraftMgr from ClangdServer to ClangdLSPServer 2018-03-16 14:30:42 +00:00
ClangdUnit.cpp [clangd] Revamp handling of diagnostics. 2018-03-12 15:28:22 +00:00
ClangdUnit.h [clangd] Revamp handling of diagnostics. 2018-03-12 15:28:22 +00:00
CodeComplete.cpp [clangd] Handle multiple callbacks from Sema's completion 2018-03-16 15:23:44 +00:00
CodeComplete.h [clangd] Pass Context implicitly using TLS. 2018-01-31 13:40:48 +00:00
CodeCompletionStrings.cpp [clangd] Pull CodeCompletionString handling logic into its own file and add unit test. 2017-12-20 17:24:31 +00:00
CodeCompletionStrings.h [clangd] Pull CodeCompletionString handling logic into its own file and add unit test. 2017-12-20 17:24:31 +00:00
CompileArgsCache.cpp [clangd] Fixed the file comment of new file. NFC 2018-01-25 14:30:46 +00:00
CompileArgsCache.h [clangd] Added forgotten files 2018-01-25 14:29:29 +00:00
Compiler.cpp [clangd] Log all ignored diagnostics. 2018-02-12 12:48:51 +00:00
Compiler.h [clangd] Log all ignored diagnostics. 2018-02-12 12:48:51 +00:00
Context.cpp [clangd] Address FIXME and fix comment 2018-02-25 07:21:16 +00:00
Context.h [clangd] Pass Context implicitly using TLS. 2018-01-31 13:40:48 +00:00
Diagnostics.cpp [clangd] Revamp handling of diagnostics. 2018-03-12 15:28:22 +00:00
Diagnostics.h [clangd] Revamp handling of diagnostics. 2018-03-12 15:28:22 +00:00
DraftStore.cpp Move DraftMgr from ClangdServer to ClangdLSPServer 2018-03-16 14:30:42 +00:00
DraftStore.h Move DraftMgr from ClangdServer to ClangdLSPServer 2018-03-16 14:30:42 +00:00
Function.h [clangd] Remove Tagged and some related APIs from ClangdServer. 2018-03-12 23:22:35 +00:00
FuzzyMatch.cpp [clangd] Fix unintentionally loose fuzzy matching, and the tests masking it. 2018-03-05 17:34:33 +00:00
FuzzyMatch.h [clangd] Fix unintentionally loose fuzzy matching, and the tests masking it. 2018-03-05 17:34:33 +00:00
GlobalCompilationDatabase.cpp [clangd] DidChangeConfiguration Notification 2018-02-22 14:00:39 +00:00
GlobalCompilationDatabase.h [clangd] DidChangeConfiguration Notification 2018-02-22 14:00:39 +00:00
Headers.cpp [clangd] don't insert new includes if either original header or canonical header is already included. 2018-02-26 08:32:13 +00:00
Headers.h [clangd] don't insert new includes if either original header or canonical header is already included. 2018-02-26 08:32:13 +00:00
JSONExpr.cpp [clangd] Put all #includes in one block in clangd source files. NFC 2017-12-14 21:22:03 +00:00
JSONExpr.h [clangd] Put all #includes in one block in clangd source files. NFC 2017-12-14 21:22:03 +00:00
JSONRPCDispatcher.cpp [clangd] Include timestamps in log messages. 2018-02-16 16:41:42 +00:00
JSONRPCDispatcher.h [clangd] Support simpler JSON-RPC stream parsing for lit tests. 2018-02-06 10:47:30 +00:00
Logger.cpp [clangd] Pass Context implicitly using TLS. 2018-01-31 13:40:48 +00:00
Logger.h [clangd] Pass Context implicitly using TLS. 2018-01-31 13:40:48 +00:00
Path.h Restored r303067 and fixed failing test. 2017-05-16 09:38:59 +00:00
Protocol.cpp [clangd] don't insert new includes if either original header or canonical header is already included. 2018-02-26 08:32:13 +00:00
Protocol.h [clangd] Revamp handling of diagnostics. 2018-03-12 15:28:22 +00:00
ProtocolHandlers.cpp [clangd] Remove unused field in HandlerRegisterer 2018-03-07 21:47:25 +00:00
ProtocolHandlers.h [clangd] Remove unused field in HandlerRegisterer 2018-03-07 21:47:25 +00:00
SourceCode.cpp [clangd] Revamp handling of diagnostics. 2018-03-12 15:28:22 +00:00
SourceCode.h [clangd] Revamp handling of diagnostics. 2018-03-12 15:28:22 +00:00
TUScheduler.cpp [clangd] Don't expose vfs in TUScheduler::runWithPreamble. 2018-03-14 17:46:52 +00:00
TUScheduler.h [clangd] Fix indentation in the comment. NFC 2018-03-14 17:49:19 +00:00
Threading.cpp [clangd] Debounce streams of updates. 2018-03-02 08:56:37 +00:00
Threading.h [clangd] Debounce streams of updates. 2018-03-02 08:56:37 +00:00
Trace.cpp [clangd] Tracing: name worker threads, and enforce naming scheduled async tasks 2018-02-19 09:56:28 +00:00
Trace.h [clangd] Tracing: name worker threads, and enforce naming scheduled async tasks 2018-02-19 09:56:28 +00:00
URI.cpp [clangd] Do not precent-encode numbers in URI. 2018-02-07 12:12:06 +00:00
URI.h [clangd] Use new URI with scheme support in place of the existing LSP URI 2018-01-29 15:37:46 +00:00
XRefs.cpp [clangd] Use the macro name range as the definition range. 2018-03-13 14:31:31 +00:00
XRefs.h [clangd] Implement textDocument/hover 2018-02-16 21:38:15 +00:00