Merge pull request #5835 from akva2/change_ide_impr_guard

changed: use standard header guard structure for _impl.hpp clangd helpers
This commit is contained in:
Bård Skaflestad 2025-01-03 10:33:54 +01:00 committed by GitHub
commit 36008aeec4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
12 changed files with 29 additions and 18 deletions

View File

@ -113,8 +113,6 @@ private:
} // namespace Opm
#ifndef OPM_BLACKOILAQUIFERMODEL_IMPL_HEADER_INCLUDED
#include "BlackoilAquiferModel_impl.hpp"
#endif
#endif

View File

@ -17,11 +17,12 @@
You should have received a copy of the GNU General Public License
along with OPM. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef OPM_BLACKOILAQUIFERMODEL_IMPL_HEADER_INCLUDED
#define OPM_BLACKOILAQUIFERMODEL_IMPL_HEADER_INCLUDED
// Improve IDE experience
#ifndef OPM_BLACKOILAQUIFERMODEL_HEADER_INCLUDED
#include <config.h>
#define OPM_BLACKOILAQUIFERMODEL_IMPL_HEADER_INCLUDED
#include <opm/simulators/aquifers/BlackoilAquiferModel.hpp>
#endif
@ -375,3 +376,5 @@ void BlackoilAquiferModel<TypeTag>::computeConnectionAreaFraction() const
}
} // namespace Opm
#endif

View File

@ -581,8 +581,6 @@ template<class Scalar> class WellContributions;
} // namespace Opm
#ifndef OPM_BLACKOILWELLMODEL_IMPL_HEADER_INCLUDED
#include "BlackoilWellModel_impl.hpp"
#endif
#endif

View File

@ -20,9 +20,11 @@
along with OPM. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef OPM_BLACKOILWELLMODEL_IMPL_HEADER_INCLUDED
#define OPM_BLACKOILWELLMODEL_IMPL_HEADER_INCLUDED
// Improve IDE experience
#ifndef OPM_BLACKOILWELLMODEL_HEADER_INCLUDED
#define OPM_BLACKOILWELLMODEL_IMPL_HEADER_INCLUDED
#include <config.h>
#include <opm/simulators/wells/BlackoilWellModel.hpp>
#endif
@ -2861,3 +2863,5 @@ namespace Opm {
}
}
} // namespace Opm
#endif

View File

@ -72,8 +72,6 @@ private:
} // namespace Opm
#ifndef OPM_GASLIFT_SINGLE_WELL_IMPL_HEADER_INCLUDED
#include "GasLiftSingleWell_impl.hpp"
#endif
#endif // OPM_GASLIFT_SINGLE_WELL_HEADER_INCLUDED

View File

@ -17,9 +17,11 @@
along with OPM. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef OPM_GASLIFT_SINGLE_WELL_IMPL_HEADER_INCLUDED
#define OPM_GASLIFT_SINGLE_WELL_IMPL_HEADER_INCLUDED
// Improve IDE experience
#ifndef OPM_GASLIFT_SINGLE_WELL_HEADER_INCLUDED
#define OPM_GASLIFT_SINGLE_WELL_IMPL_HEADER_INCLUDED
#include <config.h>
#include <opm/simulators/wells/GasLiftSingleWell.hpp>
#endif
@ -250,3 +252,5 @@ checkThpControl_() const
}
}
#endif

View File

@ -324,8 +324,6 @@ namespace Opm {
}
#ifndef OPM_MULTISEGMENTWELL_IMPL_HEADER_INCLUDED
#include "MultisegmentWell_impl.hpp"
#endif
#endif // OPM_MULTISEGMENTWELL_HEADER_INCLUDED

View File

@ -19,8 +19,10 @@
*/
// Improve IDE experience
#ifndef OPM_MULTISEGMENTWELL_HEADER_INCLUDED
#ifndef OPM_MULTISEGMENTWELL_IMPL_HEADER_INCLUDED
#define OPM_MULTISEGMENTWELL_IMPL_HEADER_INCLUDED
#ifndef OPM_MULTISEGMENTWELL_HEADER_INCLUDED
#include <config.h>
#include <opm/simulators/wells/MultisegmentWell.hpp>
#endif
@ -2314,3 +2316,5 @@ namespace Opm
}
} // namespace Opm
#endif

View File

@ -471,8 +471,6 @@ namespace Opm
}
#ifndef OPM_STANDARDWELL_IMPL_HEADER_INCLUDED
#include "StandardWell_impl.hpp"
#endif
#endif // OPM_STANDARDWELL_HEADER_INCLUDED

View File

@ -19,9 +19,11 @@
along with OPM. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef OPM_STANDARDWELL_IMPL_HEADER_INCLUDED
#define OPM_STANDARDWELL_IMPL_HEADER_INCLUDED
// Improve IDE experience
#ifndef OPM_STANDARDWELL_HEADER_INCLUDED
#define OPM_STANDARDWELL_IMPL_HEADER_INCLUDED
#include <config.h>
#include <opm/simulators/wells/StandardWell.hpp>
#endif
@ -2646,3 +2648,5 @@ namespace Opm
return result * this->well_efficiency_factor_;
}
} // namespace Opm
#endif

View File

@ -507,8 +507,6 @@ protected:
} // namespace Opm
#ifndef OPM_WELLINTERFACE_IMPL_HEADER_INCLUDED
#include "WellInterface_impl.hpp"
#endif
#endif // OPM_WELLINTERFACE_HEADER_INCLUDED

View File

@ -19,10 +19,12 @@
along with OPM. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef OPM_WELLINTERFACE_IMPL_HEADER_INCLUDED
#define OPM_WELLINTERFACE_IMPL_HEADER_INCLUDED
// Improve IDE experience
#ifndef OPM_WELLINTERFACE_HEADER_INCLUDED
#include <config.h>
#define OPM_WELLINTERFACE_IMPL_HEADER_INCLUDED
#include <opm/simulators/wells/WellInterface.hpp>
#endif
@ -2056,3 +2058,5 @@ namespace Opm
}
} // namespace Opm
#endif