@@ -135,7 +135,7 @@ class Conventions : public XMLSerializable {
135135
136136 /* ! Get all conventions of a given type */
137137 std::set<QuantLib::ext::shared_ptr<Convention>> get (const Convention::Type& type) const ;
138-
138+
139139 /* ! Find a convention for an FX pair */
140140 QuantLib::ext::shared_ptr<Convention> getFxConvention (const string& ccy1, const string& ccy2) const ;
141141
@@ -312,7 +312,7 @@ class DepositConvention : public Convention {
312312 */
313313class FutureConvention : public Convention {
314314public:
315- enum class DateGenerationRule { IMM, FirstDayOfMonth };
315+ enum class DateGenerationRule { IMM, FirstDayOfMonth, SecondThursday };
316316 // ! \name Constructors
317317 // @{
318318 // ! Default constructor
@@ -656,7 +656,7 @@ class TenorBasisSwapConvention : public Convention {
656656 // ! Detailed constructor
657657 TenorBasisSwapConvention (const string& id, const string& payIndex, const string& receiveIndex,
658658 const string& receiveFrequency = " " , const string& payFrequency = " " ,
659- const string& spreadOnRec = " " , const string& includeSpread = " " ,
659+ const string& spreadOnRec = " " , const string& includeSpread = " " ,
660660 const string& subPeriodsCouponType = " " );
661661 // @}
662662
@@ -1164,7 +1164,7 @@ class InflationSwapConvention : public Convention {
11641164 InflationSwapConvention (const string& id, const string& strFixCalendar, const string& strFixConvention,
11651165 const string& strDayCounter, const string& strIndex, const string& strInterpolated,
11661166 const string& strObservationLag, const string& strAdjustInfObsDates,
1167- const string& strInfCalendar, const string& strInfConvention,
1167+ const string& strInfCalendar, const string& strInfConvention,
11681168 PublicationRoll publicationRoll = PublicationRoll::None,
11691169 const QuantLib::ext::shared_ptr<ScheduleData>& publicationScheduleData = nullptr );
11701170
@@ -1181,7 +1181,7 @@ class InflationSwapConvention : public Convention {
11811181 PublicationRoll publicationRoll () const { return publicationRoll_; }
11821182 const Schedule& publicationSchedule () const { return publicationSchedule_; }
11831183 int startDelay () const { return startDelay_; }
1184- BusinessDayConvention startDelayConvention () const { return startDelayConvention_; }
1184+ BusinessDayConvention startDelayConvention () const { return startDelayConvention_; }
11851185
11861186 virtual void fromXML (XMLNode* node) override ;
11871187 virtual XMLNode* toXML (XMLDocument& doc) const override ;
@@ -1212,7 +1212,7 @@ class InflationSwapConvention : public Convention {
12121212 string strInfCalendar_;
12131213 string strInfConvention_;
12141214 string strStartDelayConvention_;
1215-
1215+
12161216 PublicationRoll publicationRoll_;
12171217 QuantLib::ext::shared_ptr<ScheduleData> publicationScheduleData_;
12181218};
@@ -1408,7 +1408,7 @@ class CommodityFutureConvention : public Convention {
14081408 CalendarDaysBefore (const std::string& calendarDaysBefore) : calendarDaysBefore_(calendarDaysBefore) {}
14091409 std::string calendarDaysBefore_;
14101410 };
1411-
1411+
14121412 struct BusinessDaysBefore {
14131413 BusinessDaysBefore (const std::string& daysBefore) : businessDaysBefore_(daysBefore) {}
14141414 std::string businessDaysBefore_;
@@ -1470,7 +1470,7 @@ class CommodityFutureConvention : public Convention {
14701470 };
14711471 // @}
14721472
1473- /* ! Class to hold averaging information when \c isAveraging_ is \c true. It is generally needed
1473+ /* ! Class to hold averaging information when \c isAveraging_ is \c true. It is generally needed
14741474 in the CommodityFutureConvention when referenced in piecewise price curve construction.
14751475 */
14761476 class AveragingData : public XMLSerializable {
@@ -1527,7 +1527,7 @@ class CommodityFutureConvention : public Convention {
15271527 void build ();
15281528 };
15291529
1530- // ! Class to store conventions for creating an off peak power index
1530+ // ! Class to store conventions for creating an off peak power index
15311531 class OffPeakPowerIndexData : public XMLSerializable {
15321532 public:
15331533 // ! Constructor.
@@ -1643,7 +1643,7 @@ class CommodityFutureConvention : public Convention {
16431643 QuantLib::Natural hoursPerDay = QuantLib::Null<QuantLib::Natural>(),
16441644 const QuantLib::ext::optional<OffPeakPowerIndexData>& offPeakPowerIndexData = QuantLib::ext::nullopt ,
16451645 const std::string& indexName = " " , const std::string& optionFrequency = " " );
1646-
1646+
16471647 // ! Business days before based constructor
16481648 CommodityFutureConvention (const std::string& id, const BusinessDaysAfter& businessDaysAfter,
16491649 const std::string& contractFrequency, const std::string& calendar,
@@ -1730,7 +1730,7 @@ class CommodityFutureConvention : public Convention {
17301730 QuantLib::Month oneContractMonth_;
17311731 QuantLib::Integer offsetDays_;
17321732 QuantLib::BusinessDayConvention bdc_;
1733-
1733+
17341734
17351735 std::string strDayOfMonth_;
17361736 std::string strNth_;
@@ -1756,17 +1756,17 @@ class CommodityFutureConvention : public Convention {
17561756 QuantLib::Natural hoursPerDay_;
17571757 QuantLib::ext::optional<OffPeakPowerIndexData> offPeakPowerIndexData_;
17581758 std::string indexName_;
1759-
1759+
17601760 std::string strOptionContractFrequency_;
1761-
1761+
17621762 OptionAnchorType optionAnchorType_;
17631763 std::string strOptionExpiryOffset_;
17641764 std::string strOptionExpiryDay_;
17651765 std::string strOptionNth_;
17661766 std::string strOptionWeekday_;
17671767 std::string strOptionCalendarDaysBefore_;
17681768 std::string strOptionMinBusinessDaysBefore_;
1769-
1769+
17701770 QuantLib::Frequency optionContractFrequency_;
17711771 QuantLib::Natural optionExpiryOffset_;
17721772 QuantLib::Natural optionNth_;
@@ -1777,8 +1777,8 @@ class CommodityFutureConvention : public Convention {
17771777
17781778 std::set<QuantLib::Month> validContractMonths_;
17791779 std::string savingsTime_;
1780- // If its averaging Future but the front month is spot averaged and
1781- // balance of the month price is the average price of the remaining
1780+ // If its averaging Future but the front month is spot averaged and
1781+ // balance of the month price is the average price of the remaining
17821782 // future days in contract
17831783 bool balanceOfTheMonth_;
17841784 std::string balanceOfTheMonthPricingCalendarStr_;
0 commit comments