aboutsummaryrefslogtreecommitdiff
path: root/gcc/analyzer/analyzer-logging.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/analyzer/analyzer-logging.h')
-rw-r--r--gcc/analyzer/analyzer-logging.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/gcc/analyzer/analyzer-logging.h b/gcc/analyzer/analyzer-logging.h
index 3208989..e85d293 100644
--- a/gcc/analyzer/analyzer-logging.h
+++ b/gcc/analyzer/analyzer-logging.h
@@ -91,7 +91,7 @@ public:
/* The constructor for log_scope.
- The normal case is that the logger is NULL, in which case this should
+ The normal case is that the logger is nullptr, in which case this should
be largely a no-op.
If we do have a logger, notify it that we're entering the given scope.
@@ -139,7 +139,8 @@ log_scope::~log_scope ()
}
}
-/* A log_user is something that potentially uses a logger (which could be NULL).
+/* A log_user is something that potentially uses a logger (which could be
+ nullptr).
The log_user class keeps the reference-count of a logger up-to-date. */
@@ -169,8 +170,8 @@ class log_user
FILE *get_logger_file () const
{
- if (m_logger == NULL)
- return NULL;
+ if (m_logger == nullptr)
+ return nullptr;
return m_logger->get_file ();
}
@@ -181,7 +182,7 @@ class log_user
};
/* A shortcut for calling log from a log_user, handling the common
- case where the underlying logger is NULL via a no-op. */
+ case where the underlying logger is nullptr via a no-op. */
inline void
log_user::log (const char *fmt, ...) const
@@ -196,7 +197,7 @@ log_user::log (const char *fmt, ...) const
}
/* A shortcut for starting a log line from a log_user,
- handling the common case where the underlying logger is NULL via
+ handling the common case where the underlying logger is nullptr via
a no-op. */
inline void
@@ -207,7 +208,7 @@ log_user::start_log_line () const
}
/* A shortcut for ending a log line from a log_user,
- handling the common case where the underlying logger is NULL via
+ handling the common case where the underlying logger is nullptr via
a no-op. */
inline void
@@ -218,7 +219,7 @@ log_user::end_log_line () const
}
/* A shortcut for recording entry into a scope from a log_user,
- handling the common case where the underlying logger is NULL via
+ handling the common case where the underlying logger is nullptr via
a no-op. */
inline void
@@ -229,7 +230,7 @@ log_user::enter_scope (const char *scope_name)
}
/* A shortcut for recording exit from a scope from a log_user,
- handling the common case where the underlying logger is NULL via
+ handling the common case where the underlying logger is nullptr via
a no-op. */
inline void