[JIRA] (JENKINS-56892) Add support for include what you use (IWYU)

3 views
Skip to first unread message

david@vanlaatum.id.au (JIRA)

unread,
Apr 5, 2019, 12:08:01 AM4/5/19
to jenkinsc...@googlegroups.com
David van Laatum created an issue
 
Jenkins / New Feature JENKINS-56892
Add support for include what you use (IWYU)
Issue Type: New Feature New Feature
Assignee: Ulli Hafner
Components: warnings-ng-plugin
Created: 2019-04-05 04:07
Priority: Minor Minor
Reporter: David van Laatum

https://include-what-you-use.org/ 

example output

src/common/url/URL.h should add these lines:
#include <boost/smart_ptr.hpp>                // for shared_ptr::operator!, shared_ptr, shared_ptr::operator bool
#include <boost/utility/string_view_fwd.hpp>  // for string_view
#include <cstdint>                            // for uint16_t
#include <iosfwd>                             // for ostream
#include <type_traits>                        // for declval

src/common/url/URL.h should remove these lines:
- #include <boost/shared_ptr.hpp>  // lines 9-9
- #include <boost/utility/string_view.hpp>  // lines 15-15
- #include <stdexcept>  // lines 10-10
- #include "../CompilerAttributes.h"  // lines 16-16

The full include-list for src/common/url/URL.h:
#include <boost/filesystem/path.hpp>          // for path
#include <boost/lexical_cast.hpp>             // for lexical_cast
#include <boost/smart_ptr.hpp>                // for shared_ptr::operator!, shared_ptr, shared_ptr::operator bool
#include <boost/throw_exception.hpp>          // for BOOST_THROW_EXCEPTION
#include <boost/utility/string_view_fwd.hpp>  // for string_view
#include <cstdint>                            // for uint16_t
#include <iosfwd>                             // for ostream
#include <map>                                // for multimap, multimap<>::value_compare
#include <string>                             // for string
#include <type_traits>                        // for declval
#include <vector>                             // for vector
#include "../Exceptions.h"                    // for BaseException
---

src/common/url/URL.cpp should add these lines:
#include <ctype.h>                                // for isxdigit, isdigit
#include <stdlib.h>                               // for size_t, strtol
#include <boost/exception/all.hpp>                // for operator<<, error_info
#include <boost/exception/errinfo_file_name.hpp>  // for errinfo_file_name
#include <boost/utility/string_view.hpp>          // for basic_string_view, operator<<

src/common/url/URL.cpp should remove these lines:

The full include-list for src/common/url/URL.cpp:
#include "URL.h"
#include <ctype.h>                                // for isxdigit, isdigit
#include <stdlib.h>                               // for size_t, strtol
#include <boost/exception/all.hpp>                // for operator<<, error_info
#include <boost/exception/errinfo_file_name.hpp>  // for errinfo_file_name
#include <boost/make_shared.hpp>                  // for make_shared, shared_ptr, sp_if_not_array<>::type
#include <boost/utility/string_view.hpp>          // for basic_string_view, operator<<
#include <iomanip>                                // for operator<<, setfill, setw
#include <sstream>                                // for operator<<, stringstream, basic_ostream, hex, basic_istream::operator>>, basic_ostream::operator<<
#include <utility>                                // for pair, move
---
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

ullrich.hafner@gmail.com (JIRA)

unread,
Apr 21, 2019, 7:06:02 PM4/21/19
to jenkinsc...@googlegroups.com
Ulli Hafner assigned an issue to Unassigned
Change By: Ulli Hafner
Component/s: analysis-model
Labels: help-wanted
Assignee: Ulli Hafner

ullrich.hafner@gmail.com (JIRA)

unread,
Jun 17, 2019, 4:36:03 PM6/17/19
to jenkinsc...@googlegroups.com
Ulli Hafner closed an issue as Postponed
 

Typically, new parsers are added by contributors. Since nobody stepped in up to now I close the issue until someone reopens and tries to provide a PR. 

Change By: Ulli Hafner
Status: Open Closed
Resolution: Postponed
Reply all
Reply to author
Forward
0 new messages