LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 38175 - -Wlarge-by-value-copy: misleading documentation
Summary: -Wlarge-by-value-copy: misleading documentation
Status: NEW
Alias: None
Product: clang
Classification: Unclassified
Component: C++ (show other bugs)
Version: unspecified
Hardware: PC Linux
: P enhancement
Assignee: Unassigned Clang Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-16 01:14 PDT by Sylvestre Ledru
Modified: 2018-07-17 08:19 PDT (History)
4 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sylvestre Ledru 2018-07-16 01:14:35 PDT
In the documentation, it is said that "This diagnostic is enabled by default.":
https://clang.llvm.org/docs/DiagnosticsReference.html#wlarge-by-value-copy

However, this is an incorrect statement as it is only the case with a value is provided.
https://github.com/llvm-mirror/clang/blob/master/lib/Sema/SemaDecl.cpp#L12081

I could not see how to update the source to provide this info so that clang-tblgen uses it.