]> granicus.if.org Git - clang/commit
Removed some questionable default arguments from setters
authorDmitri Gribenko <gribozavr@gmail.com>
Thu, 12 Sep 2019 12:16:43 +0000 (12:16 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Thu, 12 Sep 2019 12:16:43 +0000 (12:16 +0000)
commit61bc77941ca9d5c3bd3ad147b18279ecb078be88
treef8178e447c5226a8e06efe5e974ae1244e2f581f
parent4fa80735ed2d1f726cc88b4fd07c0e341920f673
Removed some questionable default arguments from setters

Summary:
They can be confusing -- what does it mean to call a setter without a
value? Also, some setters, like `setPrintTemplateTree` had `false` as
the default value!

The callers are largely not using these default arguments anyway.

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D67491

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@371731 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Diagnostic.h
lib/ARCMigrate/ARCMT.cpp
lib/Frontend/FrontendActions.cpp
lib/Sema/Sema.cpp