mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-24 08:18:33 +00:00
Fixed/added namespace ending comments using clang-tidy. NFC
The patch is generated using this command: tools/clang/tools/extra/clang-tidy/tool/run-clang-tidy.py -fix \ -checks=-*,llvm-namespace-comment -header-filter='llvm/.*|clang/.*' \ llvm/lib/ Thanks to Eugene Kosov for the original patch! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240137 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -127,8 +127,8 @@ namespace EHABI {
|
||||
|
||||
NUM_PERSONALITY_INDEX
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
} // namespace EHABI
|
||||
} // namespace ARM
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -375,8 +375,8 @@ struct ExceptionDataRecord {
|
||||
inline size_t HeaderWords(const ExceptionDataRecord &XR) {
|
||||
return (XR.Data[0] & 0xff800000) ? 1 : 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} // namespace WinEH
|
||||
} // namespace ARM
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -138,6 +138,6 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
} // end llvm namespace
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace llvm {
|
||||
cas_flag AtomicAdd(volatile cas_flag* ptr, cas_flag val);
|
||||
cas_flag AtomicMul(volatile cas_flag* ptr, cas_flag val);
|
||||
cas_flag AtomicDiv(volatile cas_flag* ptr, cas_flag val);
|
||||
}
|
||||
}
|
||||
} // namespace sys
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -69,6 +69,6 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -84,6 +84,6 @@ inline raw_ostream &operator<<(raw_ostream &OS, const BranchProbability &Prob) {
|
||||
return Prob.print(OS);
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -30,7 +30,7 @@ private:
|
||||
InitializeCOMRAII(const InitializeCOMRAII &) = delete;
|
||||
void operator=(const InitializeCOMRAII &) = delete;
|
||||
};
|
||||
}
|
||||
}
|
||||
} // namespace sys
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -321,6 +321,6 @@ dyn_cast_or_null(Y *Val) {
|
||||
return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
|
||||
}
|
||||
|
||||
} // End llvm namespace
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -90,6 +90,6 @@ namespace llvm {
|
||||
}
|
||||
llvm_unreachable("Bad CodeModel!");
|
||||
}
|
||||
} // end llvm namespace
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -199,6 +199,6 @@ public:
|
||||
cleanup = 0;
|
||||
}
|
||||
};
|
||||
}
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -161,6 +161,6 @@ struct DOTGraphTraits : public DefaultDOTGraphTraits {
|
||||
DOTGraphTraits (bool simple=false) : DefaultDOTGraphTraits (simple) {}
|
||||
};
|
||||
|
||||
} // End llvm namespace
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -33,6 +33,6 @@ public:
|
||||
|
||||
std::unique_ptr<DataStreamer> getDataFileStreamer(const std::string &Filename,
|
||||
std::string *Err);
|
||||
}
|
||||
} // namespace llvm
|
||||
|
||||
#endif // LLVM_SUPPORT_DATASTREAM_H_
|
||||
|
||||
@@ -91,6 +91,6 @@ raw_ostream &dbgs();
|
||||
//
|
||||
#define DEBUG(X) DEBUG_WITH_TYPE(DEBUG_TYPE, X)
|
||||
|
||||
} // End llvm namespace
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -99,7 +99,7 @@ namespace sys {
|
||||
static void AddSymbol(StringRef symbolName, void *symbolValue);
|
||||
};
|
||||
|
||||
} // End sys namespace
|
||||
} // End llvm namespace
|
||||
} // namespace sys
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -78,7 +78,7 @@ enum class errc {
|
||||
inline std::error_code make_error_code(errc E) {
|
||||
return std::error_code(static_cast<int>(E), std::generic_category());
|
||||
}
|
||||
}
|
||||
} // namespace llvm
|
||||
|
||||
namespace std {
|
||||
template <> struct is_error_code_enum<llvm::errc> : std::true_type {};
|
||||
|
||||
@@ -84,7 +84,7 @@ namespace llvm {
|
||||
LLVM_ATTRIBUTE_NORETURN void
|
||||
llvm_unreachable_internal(const char *msg=nullptr, const char *file=nullptr,
|
||||
unsigned line=0);
|
||||
}
|
||||
} // namespace llvm
|
||||
|
||||
/// Marks that the current location is not supposed to be reachable.
|
||||
/// In !NDEBUG builds, prints the message and location info to stderr.
|
||||
|
||||
@@ -724,7 +724,7 @@ namespace detail {
|
||||
intptr_t IterationHandle;
|
||||
directory_entry CurrentEntry;
|
||||
};
|
||||
}
|
||||
} // namespace detail
|
||||
|
||||
/// directory_iterator - Iterates through the entries in path. There is no
|
||||
/// operator++ because we need an error_code. If it's really needed we can make
|
||||
@@ -786,7 +786,7 @@ namespace detail {
|
||||
uint16_t Level;
|
||||
bool HasNoPushRequest;
|
||||
};
|
||||
}
|
||||
} // namespace detail
|
||||
|
||||
/// recursive_directory_iterator - Same as directory_iterator except for it
|
||||
/// recurses down into child directories.
|
||||
|
||||
@@ -73,6 +73,6 @@ namespace llvm {
|
||||
/// will not be removed when the object is destroyed.
|
||||
void releaseFile() { DeleteIt = false; }
|
||||
};
|
||||
} // End llvm namespace
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -156,7 +156,7 @@ formatted_raw_ostream &ferrs();
|
||||
/// debug output. Use it like: fdbgs() << "foo" << "bar";
|
||||
formatted_raw_ostream &fdbgs();
|
||||
|
||||
} // end llvm namespace
|
||||
} // namespace llvm
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
@@ -435,6 +435,6 @@ private:
|
||||
FileCoverageList FileCoverages;
|
||||
FuncCoverageMap FuncCoverages;
|
||||
};
|
||||
}
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -772,6 +772,6 @@ bool DominatorTreeBase<NodeT>::properlyDominates(const NodeT *A,
|
||||
getNode(const_cast<NodeT *>(B)));
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -288,6 +288,6 @@ void Calculate(DominatorTreeBase<typename GraphTraits<NodeT>::NodeType>& DT,
|
||||
DT.updateDFSNumbers();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -356,6 +356,6 @@ void ViewGraph(const GraphType &G, const Twine &Name,
|
||||
DisplayGraph(Filename, true, Program);
|
||||
}
|
||||
|
||||
} // End llvm namespace
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -68,7 +68,7 @@ namespace sys {
|
||||
///
|
||||
/// \return - True on success.
|
||||
bool getHostCPUFeatures(StringMap<bool> &Features);
|
||||
}
|
||||
}
|
||||
} // namespace sys
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -83,6 +83,6 @@ private:
|
||||
/// \brief Advance the iterator to the next line.
|
||||
void advance();
|
||||
};
|
||||
}
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -65,6 +65,6 @@ private:
|
||||
const uint8_t *body(ArrayRef<uint8_t> Data);
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -106,6 +106,6 @@ struct llvm_shutdown_obj {
|
||||
~llvm_shutdown_obj() { llvm_shutdown(); }
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -642,6 +642,6 @@ inline int64_t SignExtend64(uint64_t X, unsigned B) {
|
||||
}
|
||||
|
||||
extern const float huge_valf;
|
||||
} // End llvm namespace
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -155,7 +155,7 @@ namespace sys {
|
||||
/// as writable.
|
||||
static bool setRangeWritable(const void *Addr, size_t Size);
|
||||
};
|
||||
}
|
||||
}
|
||||
} // namespace sys
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -63,6 +63,6 @@ public:
|
||||
virtual bool isValidAddress(uint64_t address) const = 0;
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -96,7 +96,7 @@ enum Val_GNU_MIPS_ABI_MSA {
|
||||
Val_GNU_MIPS_ABI_MSA_ANY = 0, // not tagged
|
||||
Val_GNU_MIPS_ABI_MSA_128 = 1 // 128-bit MSA
|
||||
};
|
||||
}
|
||||
}
|
||||
} // namespace Mips
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -152,7 +152,7 @@ namespace llvm
|
||||
};
|
||||
|
||||
typedef SmartScopedLock<false> ScopedLock;
|
||||
}
|
||||
}
|
||||
} // namespace sys
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -36,6 +36,6 @@ namespace llvm {
|
||||
/// is held.
|
||||
bool holds(const sys::Mutex& lock) const { return &M == &lock; }
|
||||
};
|
||||
}
|
||||
} // namespace llvm
|
||||
|
||||
#endif // LLVM_SUPPORT_MUTEXGUARD_H
|
||||
|
||||
@@ -32,6 +32,6 @@ namespace llvm {
|
||||
LoadOpt("load", cl::ZeroOrMore, cl::value_desc("pluginfilename"),
|
||||
cl::desc("Load the specified plugin"));
|
||||
#endif
|
||||
}
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -184,7 +184,7 @@ public:
|
||||
static unsigned GetRandomNumber();
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
} // namespace sys
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -187,7 +187,7 @@ struct ProcessInfo {
|
||||
///< string is non-empty upon return an error occurred while invoking the
|
||||
///< program.
|
||||
);
|
||||
}
|
||||
}
|
||||
} // namespace sys
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -171,7 +171,7 @@ namespace llvm
|
||||
}
|
||||
};
|
||||
typedef SmartScopedWriter<false> ScopedWriter;
|
||||
}
|
||||
}
|
||||
} // namespace sys
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -53,6 +53,6 @@ private:
|
||||
|
||||
friend class Module;
|
||||
};
|
||||
}
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -123,6 +123,6 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -57,7 +57,7 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace llvm
|
||||
|
||||
template<class AllocatorType, class T, size_t Size, size_t Align>
|
||||
inline void *operator new(size_t size,
|
||||
|
||||
@@ -100,6 +100,6 @@ namespace llvm {
|
||||
struct llvm_regex *preg;
|
||||
int error;
|
||||
};
|
||||
}
|
||||
} // namespace llvm
|
||||
|
||||
#endif // LLVM_SUPPORT_REGEX_H
|
||||
|
||||
@@ -228,6 +228,6 @@ namespace llvm {
|
||||
template <typename T, typename U>
|
||||
typename Registry<T,U>::listener *Registry<T,U>::ListenerTail;
|
||||
|
||||
}
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace sys {
|
||||
/// different thread on some platforms.
|
||||
/// @brief Register a function to be called when ctrl-c is pressed.
|
||||
void SetInterruptFunction(void (*IF)());
|
||||
} // End sys namespace
|
||||
} // End llvm namespace
|
||||
} // namespace sys
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -280,6 +280,6 @@ public:
|
||||
bool ShowKindLabel = true) const;
|
||||
};
|
||||
|
||||
} // end llvm namespace
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -89,5 +89,5 @@ private:
|
||||
MemoryObject *getNonStreamedMemoryObject(
|
||||
const unsigned char *Start, const unsigned char *End);
|
||||
|
||||
}
|
||||
} // namespace llvm
|
||||
#endif // STREAMINGMEMORYOBJECT_H_
|
||||
|
||||
@@ -133,6 +133,6 @@ namespace llvm {
|
||||
inline bool operator!=(const PooledStringPtr &That) const { return S != That.S; }
|
||||
};
|
||||
|
||||
} // End llvm namespace
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -38,5 +38,5 @@ class BumpPtrStringSaver final : public StringSaver {
|
||||
public:
|
||||
BumpPtrStringSaver(BumpPtrAllocator &Alloc) : StringSaver(Alloc) {}
|
||||
};
|
||||
}
|
||||
} // namespace llvm
|
||||
#endif
|
||||
|
||||
@@ -27,6 +27,6 @@ bool CheckBitcodeOutputToConsole(
|
||||
bool print_warning = true ///< Control whether warnings are printed
|
||||
);
|
||||
|
||||
} // End llvm namespace
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1178,6 +1178,6 @@ private:
|
||||
return new MCCodeEmitterImpl();
|
||||
}
|
||||
};
|
||||
}
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -161,6 +161,6 @@ namespace llvm {
|
||||
#endif
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace llvm {
|
||||
// erase - Removes the pointer associated with the current thread.
|
||||
void erase() { removeInstance(); }
|
||||
};
|
||||
}
|
||||
}
|
||||
} // namespace sys
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -34,6 +34,6 @@ namespace llvm {
|
||||
/// the thread stack.
|
||||
void llvm_execute_on_thread(void (*UserFn)(void*), void *UserData,
|
||||
unsigned RequestedStackSize = 0);
|
||||
}
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -380,7 +380,7 @@ inline TimeValue operator - (const TimeValue &tv1, const TimeValue &tv2) {
|
||||
return difference;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
} // namespace sys
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -184,6 +184,6 @@ private:
|
||||
void PrintQueuedTimers(raw_ostream &OS);
|
||||
};
|
||||
|
||||
} // End llvm namespace
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -58,6 +58,6 @@ public:
|
||||
void keep() { Installer.Keep = true; }
|
||||
};
|
||||
|
||||
} // end llvm namespace
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -62,6 +62,6 @@ namespace llvm {
|
||||
|
||||
bool owns_lock() { return locked; }
|
||||
};
|
||||
}
|
||||
} // namespace llvm
|
||||
|
||||
#endif // LLVM_SUPPORT_UNIQUE_LOCK_H
|
||||
|
||||
@@ -67,7 +67,7 @@ namespace sys {
|
||||
#define TsanIgnoreWritesBegin()
|
||||
#define TsanIgnoreWritesEnd()
|
||||
#endif
|
||||
}
|
||||
}
|
||||
} // namespace sys
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace llvm {
|
||||
Watchdog(const Watchdog &other) = delete;
|
||||
Watchdog &operator=(const Watchdog &other) = delete;
|
||||
};
|
||||
}
|
||||
}
|
||||
} // namespace sys
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -152,7 +152,7 @@ namespace llvm
|
||||
delete TheStream;
|
||||
}
|
||||
};
|
||||
} // end llvm namespace
|
||||
} // namespace llvm
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
@@ -37,6 +37,6 @@ public:
|
||||
~raw_os_ostream() override;
|
||||
};
|
||||
|
||||
} // end llvm namespace
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -545,6 +545,6 @@ public:
|
||||
~buffer_ostream() { OS << str(); }
|
||||
};
|
||||
|
||||
} // end llvm namespace
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -91,7 +91,7 @@ struct add_const_past_pointer<
|
||||
typedef const typename std::remove_pointer<T>::type *type;
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace llvm
|
||||
|
||||
#ifdef LLVM_DEFINED_HAS_FEATURE
|
||||
#undef __has_feature
|
||||
|
||||
Reference in New Issue
Block a user