From 27a5b24b59a0f8ec339226d025669d4cf26c97fb Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Mon, 20 Aug 2018 22:27:52 -0700 Subject: [PATCH] Add license notice --- src/clang_complete.cc | 3 +++ src/clang_complete.h | 3 +++ src/clang_tu.cc | 3 +++ src/clang_tu.h | 3 +++ src/clang_utils.cc | 3 +++ src/clang_utils.h | 3 +++ src/config.cc | 3 +++ src/config.h | 3 +++ src/file_consumer.cc | 3 +++ src/file_consumer.h | 3 +++ src/filesystem.cc | 3 +++ src/filesystem.hh | 3 +++ src/fuzzy_match.cc | 3 +++ src/fuzzy_match.h | 3 +++ src/include_complete.cc | 3 +++ src/include_complete.h | 3 +++ src/indexer.cc | 3 +++ src/indexer.h | 3 +++ src/language.cc | 3 +++ src/language.h | 3 +++ src/log.cc | 3 +++ src/log.hh | 3 +++ src/lru_cache.h | 3 +++ src/lsp.cc | 3 +++ src/lsp.h | 3 +++ src/lsp_code_action.h | 3 +++ src/lsp_completion.h | 3 +++ src/lsp_diagnostic.h | 3 +++ src/main.cc | 3 +++ src/match.cc | 3 +++ src/match.h | 3 +++ src/maybe.h | 3 +++ src/message_handler.cc | 3 +++ src/message_handler.h | 3 +++ src/messages/ccls_base.cc | 3 +++ src/messages/ccls_callHierarchy.cc | 3 +++ src/messages/ccls_callers.cc | 3 +++ src/messages/ccls_fileInfo.cc | 3 +++ src/messages/ccls_freshenIndex.cc | 3 +++ src/messages/ccls_inheritanceHierarchy.cc | 3 +++ src/messages/ccls_memberHierarchy.cc | 3 +++ src/messages/ccls_vars.cc | 3 +++ src/messages/exit.cc | 3 +++ src/messages/initialize.cc | 3 +++ src/messages/shutdown.cc | 3 +++ src/messages/textDocument_codeAction.cc | 3 +++ src/messages/textDocument_codeLens.cc | 3 +++ src/messages/textDocument_completion.cc | 3 +++ src/messages/textDocument_definition.cc | 3 +++ src/messages/textDocument_didChange.cc | 3 +++ src/messages/textDocument_didClose.cc | 3 +++ src/messages/textDocument_didOpen.cc | 3 +++ src/messages/textDocument_didSave.cc | 3 +++ src/messages/textDocument_documentHighlight.cc | 3 +++ src/messages/textDocument_documentSymbol.cc | 3 +++ src/messages/textDocument_hover.cc | 3 +++ src/messages/textDocument_implementation.cc | 3 +++ src/messages/textDocument_references.cc | 3 +++ src/messages/textDocument_rename.cc | 3 +++ src/messages/textDocument_signatureHelp.cc | 3 +++ src/messages/textDocument_typeDefinition.cc | 3 +++ src/messages/workspace_didChangeConfiguration.cc | 3 +++ src/messages/workspace_didChangeWatchedFiles.cc | 3 +++ src/messages/workspace_executeCommand.cc | 3 +++ src/messages/workspace_symbol.cc | 3 +++ src/method.cc | 3 +++ src/method.h | 3 +++ src/pipeline.cc | 3 +++ src/pipeline.hh | 3 +++ src/platform.h | 3 +++ src/platform_posix.cc | 3 +++ src/platform_win.cc | 3 +++ src/position.cc | 3 +++ src/position.h | 3 +++ src/project.cc | 3 +++ src/project.h | 3 +++ src/query.cc | 3 +++ src/query.h | 3 +++ src/query_utils.cc | 3 +++ src/query_utils.h | 3 +++ src/serializer.cc | 3 +++ src/serializer.h | 3 +++ src/serializers/binary.h | 3 +++ src/serializers/json.h | 3 +++ src/symbol.h | 3 +++ src/test.cc | 3 +++ src/test.h | 3 +++ src/threaded_queue.h | 3 +++ src/utils.cc | 3 +++ src/utils.h | 3 +++ src/working_files.cc | 3 +++ src/working_files.h | 3 +++ 92 files changed, 276 insertions(+) diff --git a/src/clang_complete.cc b/src/clang_complete.cc index 5425361c..8d31ed0c 100644 --- a/src/clang_complete.cc +++ b/src/clang_complete.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "clang_complete.h" #include "clang_utils.h" diff --git a/src/clang_complete.h b/src/clang_complete.h index bfcb9407..c7065a12 100644 --- a/src/clang_complete.h +++ b/src/clang_complete.h @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include "clang_tu.h" diff --git a/src/clang_tu.cc b/src/clang_tu.cc index ec767f99..0a42a6ee 100644 --- a/src/clang_tu.cc +++ b/src/clang_tu.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "clang_tu.h" #include "clang_utils.h" diff --git a/src/clang_tu.h b/src/clang_tu.h index 47fe26aa..d494f8be 100644 --- a/src/clang_tu.h +++ b/src/clang_tu.h @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include "position.h" #include "working_files.h" diff --git a/src/clang_utils.cc b/src/clang_utils.cc index 3a062b6c..7a5b930a 100644 --- a/src/clang_utils.cc +++ b/src/clang_utils.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "clang_utils.h" #include "config.h" diff --git a/src/clang_utils.h b/src/clang_utils.h index 5fcc182e..9c43bd51 100644 --- a/src/clang_utils.h +++ b/src/clang_utils.h @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include diff --git a/src/config.cc b/src/config.cc index 9f0c64cf..193e41be 100644 --- a/src/config.cc +++ b/src/config.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "config.h" Config *g_config; diff --git a/src/config.h b/src/config.h index 44450b43..108196b4 100644 --- a/src/config.h +++ b/src/config.h @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include "serializer.h" diff --git a/src/file_consumer.cc b/src/file_consumer.cc index e26a714a..265114cb 100644 --- a/src/file_consumer.cc +++ b/src/file_consumer.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "file_consumer.h" #include "clang_utils.h" diff --git a/src/file_consumer.h b/src/file_consumer.h index 3d4759e4..2b3a1f59 100644 --- a/src/file_consumer.h +++ b/src/file_consumer.h @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include "position.h" diff --git a/src/filesystem.cc b/src/filesystem.cc index 55a68db9..3e9a2fbb 100644 --- a/src/filesystem.cc +++ b/src/filesystem.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "filesystem.hh" using namespace llvm; diff --git a/src/filesystem.hh b/src/filesystem.hh index 334810fc..678b86eb 100644 --- a/src/filesystem.hh +++ b/src/filesystem.hh @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include diff --git a/src/fuzzy_match.cc b/src/fuzzy_match.cc index d5d86e2d..ad0762be 100644 --- a/src/fuzzy_match.cc +++ b/src/fuzzy_match.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "fuzzy_match.h" #include diff --git a/src/fuzzy_match.h b/src/fuzzy_match.h index c92476d2..c8de1d69 100644 --- a/src/fuzzy_match.h +++ b/src/fuzzy_match.h @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include diff --git a/src/include_complete.cc b/src/include_complete.cc index a24de5f4..28104bd5 100644 --- a/src/include_complete.cc +++ b/src/include_complete.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "include_complete.h" #include "filesystem.hh" diff --git a/src/include_complete.h b/src/include_complete.h index 69265802..4681d497 100644 --- a/src/include_complete.h +++ b/src/include_complete.h @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include "lsp_completion.h" diff --git a/src/indexer.cc b/src/indexer.cc index 6951e60e..6f70cec0 100644 --- a/src/indexer.cc +++ b/src/indexer.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "indexer.h" #include "clang_tu.h" diff --git a/src/indexer.h b/src/indexer.h index ff1e1e7b..f3006b23 100644 --- a/src/indexer.h +++ b/src/indexer.h @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include "clang_utils.h" diff --git a/src/language.cc b/src/language.cc index de64e69e..561be92c 100644 --- a/src/language.cc +++ b/src/language.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "language.h" #include "utils.h" diff --git a/src/language.h b/src/language.h index 4a34152f..5cbcf2b6 100644 --- a/src/language.h +++ b/src/language.h @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include "serializer.h" diff --git a/src/log.cc b/src/log.cc index 377dc79c..fde88be3 100644 --- a/src/log.cc +++ b/src/log.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "log.hh" #include diff --git a/src/log.hh b/src/log.hh index 64fc63d6..b01920ad 100644 --- a/src/log.hh +++ b/src/log.hh @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include diff --git a/src/lru_cache.h b/src/lru_cache.h index b52c3bfb..b630a3d8 100644 --- a/src/lru_cache.h +++ b/src/lru_cache.h @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include diff --git a/src/lsp.cc b/src/lsp.cc index a931e305..953b1852 100644 --- a/src/lsp.cc +++ b/src/lsp.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "lsp.h" #include "log.hh" diff --git a/src/lsp.h b/src/lsp.h index 6533d6e0..558e69f4 100644 --- a/src/lsp.h +++ b/src/lsp.h @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include "config.h" diff --git a/src/lsp_code_action.h b/src/lsp_code_action.h index 2fbc5f4a..8ab63c45 100644 --- a/src/lsp_code_action.h +++ b/src/lsp_code_action.h @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include "lsp.h" diff --git a/src/lsp_completion.h b/src/lsp_completion.h index 26e3ff4b..c9d2fe89 100644 --- a/src/lsp_completion.h +++ b/src/lsp_completion.h @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include "lsp.h" diff --git a/src/lsp_diagnostic.h b/src/lsp_diagnostic.h index f8dc5355..501b83b8 100644 --- a/src/lsp_diagnostic.h +++ b/src/lsp_diagnostic.h @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include "lsp.h" diff --git a/src/main.cc b/src/main.cc index c68a16f8..cb9eb9cb 100644 --- a/src/main.cc +++ b/src/main.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "log.hh" #include "pipeline.hh" #include "platform.h" diff --git a/src/match.cc b/src/match.cc index bec43bea..1e4cd4df 100644 --- a/src/match.cc +++ b/src/match.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "match.h" #include "lsp.h" diff --git a/src/match.h b/src/match.h index 134257a3..9f31b319 100644 --- a/src/match.h +++ b/src/match.h @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include diff --git a/src/maybe.h b/src/maybe.h index a2459376..8e897d42 100644 --- a/src/maybe.h +++ b/src/maybe.h @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include diff --git a/src/message_handler.cc b/src/message_handler.cc index 2197ea07..4234cb53 100644 --- a/src/message_handler.cc +++ b/src/message_handler.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "message_handler.h" #include "log.hh" diff --git a/src/message_handler.h b/src/message_handler.h index eb0f891d..d6fc4a71 100644 --- a/src/message_handler.h +++ b/src/message_handler.h @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include "lru_cache.h" diff --git a/src/messages/ccls_base.cc b/src/messages/ccls_base.cc index aa079d3d..03184462 100644 --- a/src/messages/ccls_base.cc +++ b/src/messages/ccls_base.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "message_handler.h" #include "pipeline.hh" #include "query_utils.h" diff --git a/src/messages/ccls_callHierarchy.cc b/src/messages/ccls_callHierarchy.cc index 0ec1fbda..c5cf5748 100644 --- a/src/messages/ccls_callHierarchy.cc +++ b/src/messages/ccls_callHierarchy.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "message_handler.h" #include "pipeline.hh" using namespace ccls; diff --git a/src/messages/ccls_callers.cc b/src/messages/ccls_callers.cc index c5d8d7ee..15a5a370 100644 --- a/src/messages/ccls_callers.cc +++ b/src/messages/ccls_callers.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "message_handler.h" #include "pipeline.hh" #include "query_utils.h" diff --git a/src/messages/ccls_fileInfo.cc b/src/messages/ccls_fileInfo.cc index e5795ff4..b7cbddd1 100644 --- a/src/messages/ccls_fileInfo.cc +++ b/src/messages/ccls_fileInfo.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "message_handler.h" #include "pipeline.hh" #include "query_utils.h" diff --git a/src/messages/ccls_freshenIndex.cc b/src/messages/ccls_freshenIndex.cc index c538270b..08efe3c0 100644 --- a/src/messages/ccls_freshenIndex.cc +++ b/src/messages/ccls_freshenIndex.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "match.h" #include "message_handler.h" #include "pipeline.hh" diff --git a/src/messages/ccls_inheritanceHierarchy.cc b/src/messages/ccls_inheritanceHierarchy.cc index 0246ee84..7955b7a4 100644 --- a/src/messages/ccls_inheritanceHierarchy.cc +++ b/src/messages/ccls_inheritanceHierarchy.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "message_handler.h" #include "pipeline.hh" #include "query_utils.h" diff --git a/src/messages/ccls_memberHierarchy.cc b/src/messages/ccls_memberHierarchy.cc index cf2e7455..cfc61d45 100644 --- a/src/messages/ccls_memberHierarchy.cc +++ b/src/messages/ccls_memberHierarchy.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "message_handler.h" #include "pipeline.hh" #include "query_utils.h" diff --git a/src/messages/ccls_vars.cc b/src/messages/ccls_vars.cc index 69cde5c6..d388c4a2 100644 --- a/src/messages/ccls_vars.cc +++ b/src/messages/ccls_vars.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "message_handler.h" #include "pipeline.hh" #include "query_utils.h" diff --git a/src/messages/exit.cc b/src/messages/exit.cc index 2ba8da5d..9e5682e9 100644 --- a/src/messages/exit.cc +++ b/src/messages/exit.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "message_handler.h" namespace { diff --git a/src/messages/initialize.cc b/src/messages/initialize.cc index 01995f0b..6eaa223e 100644 --- a/src/messages/initialize.cc +++ b/src/messages/initialize.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "filesystem.hh" #include "include_complete.h" #include "log.hh" diff --git a/src/messages/shutdown.cc b/src/messages/shutdown.cc index 07368344..c43ddc41 100644 --- a/src/messages/shutdown.cc +++ b/src/messages/shutdown.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "message_handler.h" #include "pipeline.hh" using namespace ccls; diff --git a/src/messages/textDocument_codeAction.cc b/src/messages/textDocument_codeAction.cc index c07336f8..c0a8a327 100644 --- a/src/messages/textDocument_codeAction.cc +++ b/src/messages/textDocument_codeAction.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "message_handler.h" #include "pipeline.hh" #include "working_files.h" diff --git a/src/messages/textDocument_codeLens.cc b/src/messages/textDocument_codeLens.cc index a9bed9c8..e4d75299 100644 --- a/src/messages/textDocument_codeLens.cc +++ b/src/messages/textDocument_codeLens.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "clang_complete.h" #include "lsp_code_action.h" #include "message_handler.h" diff --git a/src/messages/textDocument_completion.cc b/src/messages/textDocument_completion.cc index a2b1cc9d..87d818aa 100644 --- a/src/messages/textDocument_completion.cc +++ b/src/messages/textDocument_completion.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "clang_complete.h" #include "fuzzy_match.h" #include "include_complete.h" diff --git a/src/messages/textDocument_definition.cc b/src/messages/textDocument_definition.cc index 21518b90..a19a7189 100644 --- a/src/messages/textDocument_definition.cc +++ b/src/messages/textDocument_definition.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "message_handler.h" #include "pipeline.hh" #include "query_utils.h" diff --git a/src/messages/textDocument_didChange.cc b/src/messages/textDocument_didChange.cc index abb63553..696063f4 100644 --- a/src/messages/textDocument_didChange.cc +++ b/src/messages/textDocument_didChange.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "clang_complete.h" #include "message_handler.h" #include "pipeline.hh" diff --git a/src/messages/textDocument_didClose.cc b/src/messages/textDocument_didClose.cc index 6e28b898..f9d487f3 100644 --- a/src/messages/textDocument_didClose.cc +++ b/src/messages/textDocument_didClose.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "clang_complete.h" #include "message_handler.h" #include "pipeline.hh" diff --git a/src/messages/textDocument_didOpen.cc b/src/messages/textDocument_didOpen.cc index 3071beb1..1f9f8e90 100644 --- a/src/messages/textDocument_didOpen.cc +++ b/src/messages/textDocument_didOpen.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "clang_complete.h" #include "include_complete.h" #include "message_handler.h" diff --git a/src/messages/textDocument_didSave.cc b/src/messages/textDocument_didSave.cc index 7e4ebdf8..7c8fc791 100644 --- a/src/messages/textDocument_didSave.cc +++ b/src/messages/textDocument_didSave.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "clang_complete.h" #include "message_handler.h" #include "pipeline.hh" diff --git a/src/messages/textDocument_documentHighlight.cc b/src/messages/textDocument_documentHighlight.cc index 8ee24cc6..e67e6676 100644 --- a/src/messages/textDocument_documentHighlight.cc +++ b/src/messages/textDocument_documentHighlight.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "message_handler.h" #include "pipeline.hh" #include "query_utils.h" diff --git a/src/messages/textDocument_documentSymbol.cc b/src/messages/textDocument_documentSymbol.cc index 8172e3ba..5e081d6d 100644 --- a/src/messages/textDocument_documentSymbol.cc +++ b/src/messages/textDocument_documentSymbol.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "message_handler.h" #include "pipeline.hh" #include "query_utils.h" diff --git a/src/messages/textDocument_hover.cc b/src/messages/textDocument_hover.cc index 13bf156a..8455da4b 100644 --- a/src/messages/textDocument_hover.cc +++ b/src/messages/textDocument_hover.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "message_handler.h" #include "pipeline.hh" #include "query_utils.h" diff --git a/src/messages/textDocument_implementation.cc b/src/messages/textDocument_implementation.cc index 32617c1d..1496d8e8 100644 --- a/src/messages/textDocument_implementation.cc +++ b/src/messages/textDocument_implementation.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "message_handler.h" #include "pipeline.hh" #include "query_utils.h" diff --git a/src/messages/textDocument_references.cc b/src/messages/textDocument_references.cc index 61802ffe..069de51a 100644 --- a/src/messages/textDocument_references.cc +++ b/src/messages/textDocument_references.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "message_handler.h" #include "pipeline.hh" #include "query_utils.h" diff --git a/src/messages/textDocument_rename.cc b/src/messages/textDocument_rename.cc index a9665f3d..410ebb1f 100644 --- a/src/messages/textDocument_rename.cc +++ b/src/messages/textDocument_rename.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "message_handler.h" #include "pipeline.hh" #include "query_utils.h" diff --git a/src/messages/textDocument_signatureHelp.cc b/src/messages/textDocument_signatureHelp.cc index aedb0851..4724b15c 100644 --- a/src/messages/textDocument_signatureHelp.cc +++ b/src/messages/textDocument_signatureHelp.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "clang_complete.h" #include "message_handler.h" #include "pipeline.hh" diff --git a/src/messages/textDocument_typeDefinition.cc b/src/messages/textDocument_typeDefinition.cc index ada23b4e..acba3cca 100644 --- a/src/messages/textDocument_typeDefinition.cc +++ b/src/messages/textDocument_typeDefinition.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "message_handler.h" #include "pipeline.hh" #include "query_utils.h" diff --git a/src/messages/workspace_didChangeConfiguration.cc b/src/messages/workspace_didChangeConfiguration.cc index 81f3210b..7eb1dcfd 100644 --- a/src/messages/workspace_didChangeConfiguration.cc +++ b/src/messages/workspace_didChangeConfiguration.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "clang_complete.h" #include "message_handler.h" #include "pipeline.hh" diff --git a/src/messages/workspace_didChangeWatchedFiles.cc b/src/messages/workspace_didChangeWatchedFiles.cc index 26762a1d..f6f623ce 100644 --- a/src/messages/workspace_didChangeWatchedFiles.cc +++ b/src/messages/workspace_didChangeWatchedFiles.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "clang_complete.h" #include "message_handler.h" #include "pipeline.hh" diff --git a/src/messages/workspace_executeCommand.cc b/src/messages/workspace_executeCommand.cc index 959484bd..cbfeb8d9 100644 --- a/src/messages/workspace_executeCommand.cc +++ b/src/messages/workspace_executeCommand.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "lsp_code_action.h" #include "message_handler.h" #include "pipeline.hh" diff --git a/src/messages/workspace_symbol.cc b/src/messages/workspace_symbol.cc index 33d80de9..ad15dc92 100644 --- a/src/messages/workspace_symbol.cc +++ b/src/messages/workspace_symbol.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "fuzzy_match.h" #include "message_handler.h" #include "pipeline.hh" diff --git a/src/method.cc b/src/method.cc index c3a48a6d..d3523281 100644 --- a/src/method.cc +++ b/src/method.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "method.h" MethodType kMethodType_Unknown = "$unknown"; diff --git a/src/method.h b/src/method.h index b308002e..f36864f7 100644 --- a/src/method.h +++ b/src/method.h @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include "serializer.h" diff --git a/src/pipeline.cc b/src/pipeline.cc index 5a43a01f..0a875c71 100644 --- a/src/pipeline.cc +++ b/src/pipeline.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "pipeline.hh" #include "clang_complete.h" diff --git a/src/pipeline.hh b/src/pipeline.hh index d3c7dcf4..7c74e088 100644 --- a/src/pipeline.hh +++ b/src/pipeline.hh @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include "lsp_diagnostic.h" diff --git a/src/platform.h b/src/platform.h index d130e788..2b3fb8f6 100644 --- a/src/platform.h +++ b/src/platform.h @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include diff --git a/src/platform_posix.cc b/src/platform_posix.cc index ac7409ff..638e7a82 100644 --- a/src/platform_posix.cc +++ b/src/platform_posix.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #if defined(__unix__) || defined(__APPLE__) #include "platform.h" diff --git a/src/platform_win.cc b/src/platform_win.cc index 0ba14c3a..f4ebf188 100644 --- a/src/platform_win.cc +++ b/src/platform_win.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #if defined(_WIN32) #include "platform.h" diff --git a/src/position.cc b/src/position.cc index 6759e44f..b3fe9fb5 100644 --- a/src/position.cc +++ b/src/position.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "position.h" #include "serializer.h" diff --git a/src/position.h b/src/position.h index a83f54d6..2b292dd6 100644 --- a/src/position.h +++ b/src/position.h @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include "maybe.h" diff --git a/src/project.cc b/src/project.cc index 3b0bfeec..b28891d4 100644 --- a/src/project.cc +++ b/src/project.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "project.h" #include "clang_utils.h" diff --git a/src/project.h b/src/project.h index d91f830c..58b24ad5 100644 --- a/src/project.h +++ b/src/project.h @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include "config.h" diff --git a/src/query.cc b/src/query.cc index bff1134c..b86c490a 100644 --- a/src/query.cc +++ b/src/query.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "query.h" #include "indexer.h" diff --git a/src/query.h b/src/query.h index f05dc7f8..cfa87485 100644 --- a/src/query.h +++ b/src/query.h @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include "indexer.h" diff --git a/src/query_utils.cc b/src/query_utils.cc index e5a4887a..195de920 100644 --- a/src/query_utils.cc +++ b/src/query_utils.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "query_utils.h" #include "pipeline.hh" diff --git a/src/query_utils.h b/src/query_utils.h index 884085ae..18677329 100644 --- a/src/query_utils.h +++ b/src/query_utils.h @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include "query.h" diff --git a/src/serializer.cc b/src/serializer.cc index 9ab01f06..abf87192 100644 --- a/src/serializer.cc +++ b/src/serializer.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "serializer.h" #include "filesystem.hh" diff --git a/src/serializer.h b/src/serializer.h index 78eebd40..c3ebca61 100644 --- a/src/serializer.h +++ b/src/serializer.h @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include "maybe.h" diff --git a/src/serializers/binary.h b/src/serializers/binary.h index a8d3a1e4..5b56dd05 100644 --- a/src/serializers/binary.h +++ b/src/serializers/binary.h @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include "serializer.h" diff --git a/src/serializers/json.h b/src/serializers/json.h index 092d9afe..5b5db006 100644 --- a/src/serializers/json.h +++ b/src/serializers/json.h @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include "serializer.h" diff --git a/src/symbol.h b/src/symbol.h index 3a79ba07..b8fab1f2 100644 --- a/src/symbol.h +++ b/src/symbol.h @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include "lsp.h" diff --git a/src/test.cc b/src/test.cc index 943c54b6..2b24230e 100644 --- a/src/test.cc +++ b/src/test.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "test.h" #include "filesystem.hh" diff --git a/src/test.h b/src/test.h index 2d5bf610..e93f3fa5 100644 --- a/src/test.h +++ b/src/test.h @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include diff --git a/src/threaded_queue.h b/src/threaded_queue.h index a149c928..a16568e5 100644 --- a/src/threaded_queue.h +++ b/src/threaded_queue.h @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include "utils.h" diff --git a/src/utils.cc b/src/utils.cc index 5e92e699..9e838dbf 100644 --- a/src/utils.cc +++ b/src/utils.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "utils.h" #include "filesystem.hh" diff --git a/src/utils.h b/src/utils.h index 4317e5eb..77b82410 100644 --- a/src/utils.h +++ b/src/utils.h @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include diff --git a/src/working_files.cc b/src/working_files.cc index 643388fb..51254112 100644 --- a/src/working_files.cc +++ b/src/working_files.cc @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #include "working_files.h" #include "log.hh" diff --git a/src/working_files.h b/src/working_files.h index 804301a9..ce4874ee 100644 --- a/src/working_files.h +++ b/src/working_files.h @@ -1,3 +1,6 @@ +// Copyright 2017-2018 ccls Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include "lsp_diagnostic.h"