99#ifndef LLVM_OPTION_ARGLIST_H
1010#define LLVM_OPTION_ARGLIST_H
1111
12- #include " llvm/Support/Compiler.h"
1312#include " llvm/ADT/ArrayRef.h"
1413#include " llvm/ADT/DenseMap.h"
15- #include " llvm/ADT/iterator_range.h"
1614#include " llvm/ADT/SmallString.h"
1715#include " llvm/ADT/SmallVector.h"
1816#include " llvm/ADT/StringRef.h"
1917#include " llvm/ADT/Twine.h"
18+ #include " llvm/ADT/iterator_range.h"
2019#include " llvm/Option/Arg.h"
2120#include " llvm/Option/OptSpecifier.h"
2221#include " llvm/Option/Option.h"
22+ #include " llvm/Support/Compiler.h"
2323#include < algorithm>
2424#include < cstddef>
2525#include < initializer_list>
@@ -285,7 +285,8 @@ class ArgList {
285285 // / @{
286286
287287 // / getLastArgValue - Return the value of the last argument, or a default.
288- LLVM_ABI StringRef getLastArgValue (OptSpecifier Id, StringRef Default = " " ) const ;
288+ LLVM_ABI StringRef getLastArgValue (OptSpecifier Id,
289+ StringRef Default = " " ) const ;
289290
290291 // / getAllArgValues - Get the values of all instances of the given argument
291292 // / as strings.
@@ -300,19 +301,20 @@ class ArgList {
300301 // / \p Default if neither option is given. If both the option and its
301302 // / negation are present, the last one wins.
302303 LLVM_ABI bool hasFlag (OptSpecifier Pos, OptSpecifier Neg, bool Default) const ;
303- LLVM_ABI bool hasFlagNoClaim (OptSpecifier Pos, OptSpecifier Neg, bool Default) const ;
304+ LLVM_ABI bool hasFlagNoClaim (OptSpecifier Pos, OptSpecifier Neg,
305+ bool Default) const ;
304306
305307 // / hasFlag - Given an option \p Pos, an alias \p PosAlias and its negative
306308 // / form \p Neg, return true if the option or its alias is present, false if
307309 // / the negation is present, and \p Default if none of the options are
308310 // / given. If multiple options are present, the last one wins.
309- LLVM_ABI bool hasFlag (OptSpecifier Pos, OptSpecifier PosAlias, OptSpecifier Neg,
310- bool Default) const ;
311+ LLVM_ABI bool hasFlag (OptSpecifier Pos, OptSpecifier PosAlias,
312+ OptSpecifier Neg, bool Default) const ;
311313
312314 // / Given an option Pos and its negative form Neg, render the option if Pos is
313315 // / present.
314316 LLVM_ABI void addOptInFlag (ArgStringList &Output, OptSpecifier Pos,
315- OptSpecifier Neg) const ;
317+ OptSpecifier Neg) const ;
316318 // / Render the option if Neg is present.
317319 void addOptOutFlag (ArgStringList &Output, OptSpecifier Pos,
318320 OptSpecifier Neg) const {
@@ -332,18 +334,21 @@ class ArgList {
332334
333335 // / AddAllArgsExcept - Render all arguments matching any of the given ids
334336 // / and not matching any of the excluded ids.
335- LLVM_ABI void AddAllArgsExcept (ArgStringList &Output, ArrayRef<OptSpecifier> Ids,
336- ArrayRef<OptSpecifier> ExcludeIds) const ;
337+ LLVM_ABI void AddAllArgsExcept (ArgStringList &Output,
338+ ArrayRef<OptSpecifier> Ids,
339+ ArrayRef<OptSpecifier> ExcludeIds) const ;
337340 // / Render all arguments matching any of the given ids.
338- LLVM_ABI void addAllArgs (ArgStringList &Output, ArrayRef<OptSpecifier> Ids) const ;
341+ LLVM_ABI void addAllArgs (ArgStringList &Output,
342+ ArrayRef<OptSpecifier> Ids) const ;
339343
340344 // / AddAllArgs - Render all arguments matching the given ids.
341345 LLVM_ABI void AddAllArgs (ArgStringList &Output, OptSpecifier Id0) const ;
342346
343347 // / AddAllArgValues - Render the argument values of all arguments
344348 // / matching the given ids.
345349 LLVM_ABI void AddAllArgValues (ArgStringList &Output, OptSpecifier Id0,
346- OptSpecifier Id1 = 0U , OptSpecifier Id2 = 0U ) const ;
350+ OptSpecifier Id1 = 0U ,
351+ OptSpecifier Id2 = 0U ) const ;
347352
348353 // / AddAllArgsTranslated - Render all the arguments matching the
349354 // / given ids, but forced to separate args and using the provided
@@ -352,8 +357,8 @@ class ArgList {
352357 // / \param Joined - If true, render the argument as joined with
353358 // / the option specifier.
354359 LLVM_ABI void AddAllArgsTranslated (ArgStringList &Output, OptSpecifier Id0,
355- const char *Translation,
356- bool Joined = false ) const ;
360+ const char *Translation,
361+ bool Joined = false ) const ;
357362
358363 // / ClaimAllArgs - Claim all arguments which match the given
359364 // / option id.
@@ -383,7 +388,7 @@ class ArgList {
383388 // / Create an arg string for (\p LHS + \p RHS), reusing the
384389 // / string at \p Index if possible.
385390 LLVM_ABI const char *GetOrMakeJoinedArgString (unsigned Index, StringRef LHS,
386- StringRef RHS) const ;
391+ StringRef RHS) const ;
387392
388393 LLVM_ABI void print (raw_ostream &O) const ;
389394 LLVM_ABI void dump () const ;
0 commit comments