Fix all IWUY warnings

This commit is contained in:
Sameer Rahmani 2023-02-06 14:31:12 +00:00
parent 72c3b0ce16
commit 8842dd4ebb
Signed by: lxsameer
GPG Key ID: B0A4AF28AB9FD90B
8 changed files with 62 additions and 33 deletions

View File

@ -19,22 +19,19 @@
#ifndef SERENE_CONTEXT_H
#define SERENE_CONTEXT_H
#include "serene/export.h" // for SERENE_EXPORT
#include "serene/options.h"
#include "serene/export.h" // for SERENE_EXPORT
#include "serene/options.h" // for Options
#include <llvm/ADT/Triple.h> // for Triple
#include <llvm/ADT/Twine.h> // for Twine
#include <llvm/IR/LLVMContext.h> // for LLVMContext
#include <llvm/Support/Host.h> // for getDefaultTargetTriple
#include <llvm/ADT/Twine.h> // for Twine
#include <llvm/IR/LLVMContext.h> // for LLVMContext
#include <llvm/TargetParser/Host.h> // for getDefaultTargetTriple
#include <llvm/TargetParser/Triple.h> // for Triple
#include <functional> // for function
#include <memory> // for make_unique, unique_ptr
#include <string> // for string, basic_string
#include <string> // for basic_string, string
#include <vector> // for vector
#define DEFAULT_NS_NAME "serene.user"
#define INTERNAL_NS "serene.internal"
namespace serene {
class SereneContext;

View File

@ -19,13 +19,9 @@
#ifndef SERENE_FS_H
#define SERENE_FS_H
#include <llvm/ADT/SmallString.h>
#include <llvm/ADT/SmallVector.h>
#include <llvm/ADT/StringRef.h>
#include <llvm/Support/FileSystem.h>
#include <llvm/Support/Path.h>
#include <llvm/ADT/StringRef.h> // for StringRef
#include <filesystem>
#include <string> // for string
#define MAX_PATH_SLOTS 256

View File

@ -19,9 +19,14 @@
#ifndef SERENE_JIT_PACKER_H
#define SERENE_JIT_PACKER_H
#include <llvm/ADT/SmallVector.h>
#include <llvm/ADT/StringRef.h>
#include <llvm/IR/Module.h>
#include <llvm/ADT/SmallVector.h> // for SmallVectorImpl
#include <llvm/ADT/StringRef.h> // for StringRef
#include <string> // for string
namespace llvm {
class Module;
}
namespace serene::jit {

View File

@ -18,11 +18,12 @@
#ifndef SERENE_SERENE_H
#define SERENE_SERENE_H
#include "serene/export.h" // for SERENE_EXPORT
#include "serene/jit/halley.h" // for Engine, MaybeEngine
#include "serene/options.h" // for Options
#include <gc.h>
#include <gc/gc.h> // for GC_INIT
#define SERENE_INIT() \
GC_INIT(); \

View File

@ -18,9 +18,15 @@
#include "serene/fs.h"
#include "serene/context.h"
#include <system_error> // for error_code
#include <llvm/BinaryFormat/Magic.h>
#include <llvm/ADT/SmallString.h> // for SmallString
#include <llvm/ADT/Twine.h> // for Twine
#include <llvm/BinaryFormat/Magic.h> // for file_magic, identify_magic
#include <llvm/Support/FileSystem.h> // for exists, status, file_status
#include <llvm/Support/Path.h> // for native, get_separator
#include <algorithm> // for replace
namespace serene::fs {

View File

@ -18,9 +18,25 @@
#include "serene/jit/packer.h"
#include "serene/config.h"
#include "serene/config.h" // for I64_SIZE, COMMON_ARGS_COUNT
#include <llvm/IR/IRBuilder.h>
#include <llvm/ADT/APInt.h> // for APInt
#include <llvm/ADT/DenseSet.h> // for DenseSet
#include <llvm/ADT/STLExtras.h> // for size, enumerate, enumerator
#include <llvm/ADT/ilist_iterator.h> // for operator!=, ilist_iterator
#include <llvm/ADT/iterator.h> // for iterator_facade_base
#include <llvm/ADT/iterator_range.h> // for iterator_range
#include <llvm/IR/Argument.h> // for Argument
#include <llvm/IR/BasicBlock.h> // for BasicBlock
#include <llvm/IR/Constant.h> // for Constant
#include <llvm/IR/DerivedTypes.h> // for PointerType, IntegerType, Funct...
#include <llvm/IR/Function.h> // for Function
#include <llvm/IR/IRBuilder.h> // for IRBuilder
#include <llvm/IR/Instructions.h> // for LoadInst, CallInst
#include <llvm/IR/Module.h> // for Module
#include <llvm/IR/Type.h> // for Type
#include <llvm/IR/Value.h> // for Value
#include <llvm/Support/Casting.h> // for cast
namespace serene::jit {

View File

@ -15,19 +15,19 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "serene/serene.h"
#include "serene/context.h" // for SereneContext, makeSereneCon...
#include "serene/jit/halley.h" // for makeHalleyJIT, Engine, Maybe...
#include <llvm/ADT/StringRef.h> // for StringRef
#include <llvm/Support/CommandLine.h> // for list, cat, desc, MiscFlags
#include <llvm/Support/CommandLine.h> // for list, MiscFlags, cat, desc
#include <llvm/Support/ManagedStatic.h> // for ManagedStatic
#include <llvm/Support/TargetSelect.h> // for InitializeAllAsmParsers, Ini...
#include <string> // for string
#include <utility> // for move
#include <vector> // for vector
namespace serene {
// CLI Option ----------------

View File

@ -16,10 +16,21 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "serene/config.h"
#include "serene/context.h"
#include "serene/serene.h"
#include "serene/types/types.h"
#include "serene/config.h" // for SERENE_VERSION
#include "serene/jit/halley.h" // for Halley
#include "serene/options.h" // for serene
#include "serene/serene.h" // for applySereneCLOptions
#include "serene/types/types.h" // for InternalString
#include <llvm/Support/CommandLine.h> // for ParseCommandLineOptions
#include <llvm/Support/Error.h> // for operator<<, Error
#include <llvm/Support/FormatVariadic.h> // for formatv, formatv_object
#include <llvm/Support/FormatVariadicDetails.h> // for provider_format_adapter
#include <llvm/Support/raw_ostream.h> // for errs, raw_ostream
#include <memory> // for allocator, unique_ptr
#include <string> // for string
#include <tuple> // for tuple
// #include "serene/jit/halley.h"
// #include "serene/namespace.h"
@ -41,11 +52,8 @@
// #include <llvm/ADT/StringRef.h>
// #include <llvm/IR/LegacyPassManager.h>
// //#include <llvm/MC/TargetRegistry.h>
#include <llvm/Support/CommandLine.h>
// #include <llvm/Support/FileSystem.h>
#include <llvm/Support/FormatVariadic.h>
#include <iostream>
// #include <llvm/Support/Host.h>
// #include <llvm/Support/Path.h>
// #include <llvm/Support/raw_ostream.h>