Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for new clang-tidy rule misc-include-cleaner #13

Merged
merged 1 commit into from
Jul 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions cpp/AdsToJava.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
#include "StdAfx.h"
#ifdef USE_OPENSOURCE_ADSLIB
#include "AdsLib.h"
#include "standalone/AdsDef.h"
#include "standalone/AdsLib.h"
#else
#include "TcAdsAPI.h"
#endif

#include "jni.h"
#include "jni_md.h"

#include "AdsToJava.h"
#include "JObjAdsDevName.h"
Expand All @@ -14,13 +17,16 @@
#include "JObjAdsState.h"
#include "JObjAdsVersion.h"
#include "JObjAmsAddr.h"
#include "JObjAmsNetId.h"

#include "JObjJNIBool.h"
#include "JObjJNIByteBuffer.h"
#include "JObjJNILong.h"
#include <array>
#include <algorithm>
#include <cstddef>
#include <cstdint>
#include <exception>
#include <limits>
#include <memory>
#include <string>
#include <vector>
#ifndef POSIX
Expand Down
2 changes: 2 additions & 0 deletions cpp/JObjAdsDevName.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#include "JObjAdsDevName.h"
#include "JObjectBase.h"
#include "jni.h"

JObjAdsDevName::JObjAdsDevName(JNIEnv* lEnv, jobject lJObject)
: JObjectBase(lEnv, lJObject) {}
Expand Down
8 changes: 8 additions & 0 deletions cpp/JObjAdsNotificationAttrib.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
#include "JObjAdsNotificationAttrib.h"
#include "JObjectBase.h"
#include "jni.h"
#include "jni_md.h"
#ifdef USE_OPENSOURCE_ADSLIB
#include "standalone/AdsDef.h"
#else
#include "TcAdsAPI.h"
#endif

JObjAdsNotificationAttrib::JObjAdsNotificationAttrib(JNIEnv* lEnv,
jobject lJObject)
Expand Down
9 changes: 9 additions & 0 deletions cpp/JObjAdsNotificationHeader.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
#include "JObjAdsNotificationHeader.h"
#include "JObjectBase.h"
#include "jni.h"
#include "jni_md.h"
#ifdef USE_OPENSOURCE_ADSLIB
#include "standalone/AdsDef.h"
#else
#include "TcAdsAPI.h"
#endif
#include <cstdint>

JObjAdsNotificationHeader::JObjAdsNotificationHeader(JNIEnv* lEnv,
jobject lJObject)
Expand Down
2 changes: 2 additions & 0 deletions cpp/JObjAdsState.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#include "JObjAdsState.h"
#include "JObjectBase.h"
#include "jni.h"

JObjAdsState::JObjAdsState(JNIEnv* lEnv, jobject lJObject)
: JObjectBase(lEnv, lJObject) {}
Expand Down
7 changes: 7 additions & 0 deletions cpp/JObjAdsVersion.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
#include "JObjAdsVersion.h"
#include "JObjectBase.h"
#include "jni.h"
#ifdef USE_OPENSOURCE_ADSLIB
#include "standalone/AdsDef.h"
#else
#include "TcAdsAPI.h"
#endif

JObjAdsVersion::JObjAdsVersion(JNIEnv* lEnv, jobject lJObject)
: JObjectBase(lEnv, lJObject) {}
Expand Down
11 changes: 11 additions & 0 deletions cpp/JObjAmsAddr.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
#include "JObjAmsAddr.h"
#include "JObjAmsNetId.h"
#include "JObjectBase.h"
#include "StdAfx.h"
#include "jni.h"
#include "jni_md.h"
#ifdef USE_OPENSOURCE_ADSLIB
#include "standalone/AdsDef.h"
#else
#include "TcAdsAPI.h"
#endif
#include <cstddef>
#include <limits>
#include <string>

Expand Down
8 changes: 8 additions & 0 deletions cpp/JObjAmsNetId.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
#include "JObjAmsNetId.h"
#include "JObjectBase.h"
#include "StdAfx.h"
#include "jni.h"
#ifdef USE_OPENSOURCE_ADSLIB
#include "standalone/AdsDef.h"
#else
#include "TcAdsAPI.h"
#endif

JObjAmsNetId::JObjAmsNetId(JNIEnv* lEnv, jobject lJObject)
: JObjectBase(lEnv, lJObject) {}
Expand Down
2 changes: 2 additions & 0 deletions cpp/JObjJNIBool.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#include "JObjJNIBool.h"
#include "JObjectBase.h"
#include "jni.h"

JObjJNIBool::JObjJNIBool(JNIEnv* lEnv, jobject lJObject)
: JObjectBase(lEnv, lJObject) {}
Expand Down
2 changes: 2 additions & 0 deletions cpp/JObjJNIByteBuffer.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#include "JObjJNIByteBuffer.h"
#include "JObjectBase.h"
#include "jni.h"

JObjJNIByteBuffer::JObjJNIByteBuffer(JNIEnv* lEnv, jobject lJObject)
: JObjectBase(lEnv, lJObject) {}
Expand Down
3 changes: 3 additions & 0 deletions cpp/JObjJNILong.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#include "JObjJNILong.h"
#include "JObjectBase.h"
#include "jni.h"
#include "jni_md.h"

JObjJNILong::JObjJNILong(JNIEnv* lEnv, jobject lJObject)
: JObjectBase(lEnv, lJObject) {}
Expand Down
2 changes: 2 additions & 0 deletions cpp/JObjectBase.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include "JObjectBase.h"
#include "jni.h"
#include "jni_md.h"
#include <cstdint>

JObjectBase::JObjectBase(JNIEnv* lEnv, jobject lJObject)
: mEnv(lEnv), mJObject(lJObject), mJClass(lEnv->GetObjectClass(lJObject)) {}
Expand Down
1 change: 0 additions & 1 deletion cpp/StdAfx.cpp

This file was deleted.

Loading