Lines Matching refs:Logger
31 class Logger;
32 typedef IntrusiveRefCntPtr<Logger> LogRef;
37 /// if (LogRef Log = Logger::make(__func__)) {
41 class Logger : public RefCountedBase<Logger> {
53 if (const char *EnvOpt = Logger::getEnvVar())
60 return new Logger(name, trace);
64 explicit Logger(llvm::StringRef name, bool trace)
66 ~Logger();
68 Logger &operator<<(CXTranslationUnit);
69 Logger &operator<<(const FileEntry *FE);
70 Logger &operator<<(CXCursor cursor);
71 Logger &operator<<(CXSourceLocation);
72 Logger &operator<<(CXSourceRange);
73 Logger &operator<<(CXString);
74 Logger &operator<<(llvm::StringRef Str) { LogOS << Str; return *this; }
75 Logger &operator<<(const char *Str) {
80 Logger &operator<<(unsigned long N) { LogOS << N; return *this; }
81 Logger &operator<<(long N) { LogOS << N ; return *this; }
82 Logger &operator<<(unsigned int N) { LogOS << N; return *this; }
83 Logger &operator<<(int N) { LogOS << N; return *this; }
84 Logger &operator<<(char C) { LogOS << C; return *this; }
85 Logger &operator<<(unsigned char C) { LogOS << C; return *this; }
86 Logger &operator<<(signed char C) { LogOS << C; return *this; }
87 Logger &operator<<(const llvm::format_object_base &Fmt);
93 /// \brief Macros to automate common uses of Logger. Like this:
100 if (clang::cxindex::LogRef Log = clang::cxindex::Logger::make(NAME))