File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 13
13
#include " swift/extractor/infra/SwiftLocationExtractor.h"
14
14
#include " swift/extractor/infra/SwiftBodyEmissionStrategy.h"
15
15
#include " swift/extractor/config/SwiftExtractorState.h"
16
+ #include " swift/extractor/infra/log/SwiftLogging.h"
16
17
17
18
namespace codeql {
18
19
@@ -151,7 +152,13 @@ class SwiftDispatcher {
151
152
return *l;
152
153
}
153
154
waitingForNewLabel = e;
155
+ // TODO: more generic and informational visiting one-line log
156
+ if constexpr (std::is_convertible_v<E, const swift::ValueDecl*>) {
157
+ const swift::ValueDecl* x = e;
158
+ LOG_TRACE (" {}" , x->getName ().getBaseIdentifier ().str ());
159
+ }
154
160
visit (e, std::forward<Args>(args)...);
161
+ Log::flush ();
155
162
// TODO when everything is moved to structured C++ classes, this should be moved to createEntry
156
163
if (auto l = store.get (e)) {
157
164
if constexpr (IsLocatable<E>) {
@@ -329,6 +336,7 @@ class SwiftDispatcher {
329
336
SwiftBodyEmissionStrategy& bodyEmissionStrategy;
330
337
Store::Handle waitingForNewLabel{std::monostate{}};
331
338
std::unordered_set<swift::ModuleDecl*> encounteredModules;
339
+ Logger logger{" dispatcher" };
332
340
};
333
341
334
342
} // namespace codeql
You can’t perform that action at this time.
0 commit comments