bool operator==(const Args& other) const;
bool operator!=(const Args& other) const;
+ bool empty() const;
size_t size() const;
const std::string& operator[](size_t i) const;
std::string& operator[](size_t i);
return m_args != other.m_args;
}
+inline bool
+Args::empty() const
+{
+ return m_args.empty();
+}
+
inline size_t
Args::size() const
{
}
// Else: Fall back to running the real compiler.
- assert(ctx.orig_args.size() > 0);
+ assert(!ctx.orig_args.empty());
args_strip(ctx.orig_args, "--ccache-");
add_prefix(ctx, ctx.orig_args, ctx.config.prefix_command());