We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 065699b commit ef1403cCopy full SHA for ef1403c
llvm/include/llvm/Support/ScopedPrinter.h
@@ -454,14 +454,10 @@ class LLVM_ABI ScopedPrinter {
454
virtual raw_ostream &getOStream() { return OS; }
455
456
private:
457
- template <typename T> void printVersionInternal(T Value) {
+ template <typename T, typename... TArgs>
458
+ void printVersionInternal(T Value, TArgs... Args) {
459
getOStream() << Value;
- }
460
-
461
- template <typename S, typename T, typename... TArgs>
462
- void printVersionInternal(S Value, T Value2, TArgs... Args) {
463
- getOStream() << Value << ".";
464
- printVersionInternal(Value2, Args...);
+ ((getOStream() << '.' << Args), ...);
465
}
466
467
static bool flagName(const FlagEntry &LHS, const FlagEntry &RHS) {
0 commit comments