[PATCH] D37972: [clangd] Introduced Logger interface.
Marc-Andre Laperle via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 18 07:12:21 PDT 2017
malaperle added a comment.
Looks very nice! Just a few questions.
================
Comment at: clangd/ClangdServer.h:24
#include "ClangdUnit.h"
+#include "Logger.h"
#include "Protocol.h"
----------------
forward declare?
================
Comment at: clangd/ClangdUnit.h:13
+#include "Logger.h"
#include "Path.h"
----------------
forward declare?
================
Comment at: clangd/GlobalCompilationDatabase.cpp:88
if (!Error.empty()) {
- // FIXME(ibiryukov): logging
- // Output.log("Error when trying to load compilation database from " +
- // Twine(Path) + ": " + Twine(Error) + "\n");
+ Logger.log("Error when trying to load compilation database from " +
+ Path + ": " + Twine(Error) + "\n");
----------------
Will this log for every parent folder that doesn't contain the compilation database? I haven't tried to confirm. Just wondering because it could get very spammy.
================
Comment at: clangd/GlobalCompilationDatabase.h:13
+#include "Logger.h"
#include "Path.h"
----------------
forward declare instead?
https://reviews.llvm.org/D37972
More information about the cfe-commits
mailing list